]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/other/smux/types.cpp
Fight CLang warnings.
[stg.git] / projects / stargazer / plugins / other / smux / types.cpp
index 4e54749287110f740fa264db4590a63fd23028b9..8132bca0c2bc599dcd279527a3c39142f0097432 100644 (file)
@@ -1,10 +1,10 @@
+#include "types.h"
+
 #include <stdexcept>
 #include <algorithm>
 #include <iterator>
 #include <sstream>
 
-#include "types.h"
-
 namespace
 {
 
@@ -22,14 +22,14 @@ if (*left == '.')
 size_t arcPos = 0;
 while ((left - str) < length)
     {
-    char * pos = NULL;
-    unsigned arc = static_cast<unsigned int>(strtoul(left, &pos, 10));
-    if (pos == left)
+    char * p = NULL;
+    unsigned arc = static_cast<unsigned int>(strtoul(left, &p, 10));
+    if (p == left)
         return false;
     a[arcPos++] = arc;
     if (arcPos >= 1024)
         return false;
-    left = pos + 1;
+    left = p + 1;
     }
 *pos = arcPos;
 return true;