]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Consistent naming
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 27 Jan 2026 10:45:53 +0000 (11:45 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 27 Jan 2026 10:45:53 +0000 (11:45 +0100)
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
pdns/sdig.cc

index cbdd0f94b73bb002f9aa2b6a70d8342349f7c9fd..de8ba692e7bcda78a5c3ada5a3951e1bdee63c81 100644 (file)
@@ -387,19 +387,19 @@ try {
             exit(EXIT_FAILURE);
           }
 
-          std::string spanidStr;
+          std::string spanIDStr;
           if (traceIDStr.size() > traceid.size()) {
-            spanidStr = std::string(traceIDStr.begin() + traceid.size(), traceIDStr.end());
+            spanIDStr = std::string(traceIDStr.begin() + traceid.size(), traceIDStr.end());
           }
           traceIDStr.resize(traceid.size());
           pdns::trace::fill(traceid, traceIDStr);
-          if (spanidStr.empty()) {
+          if (spanIDStr.empty()) {
             spanid.makeRandom();
-          } else if (spanidStr.size() != spanid.size()) {
-            cerr << "spanid size must be " << spanid.size()<< " bytes, but is " << spanidStr.size() << endl;
+          } else if (spanIDStr.size() != spanid.size()) {
+            cerr << "spanid size must be " << spanid.size()<< " bytes, but is " << spanIDStr.size() << endl;
             exit(EXIT_FAILURE);
           } else {
-            pdns::trace::fill(spanid, spanidStr);
+            pdns::trace::fill(spanid, spanIDStr);
           }
         }
         otdata = std::make_tuple(traceid, spanid, traceflags);