Bug 1148 variable ‘curtok’ set but not used
authorJohn Abraham<john.abraham@gatech.edu>
Sat, 14 May 2011 03:28:34 -0400
changeset 7212 9897d03ff662
parent 7211 d2acf559505b
child 7213 afdf264a9d14
Bug 1148 variable ‘curtok’ set but not used
src/network/utils/ipv6-address.cc
--- a/src/network/utils/ipv6-address.cc	Sat May 14 03:20:58 2011 -0400
+++ b/src/network/utils/ipv6-address.cc	Sat May 14 03:28:34 2011 -0400
@@ -125,7 +125,9 @@
   unsigned char* endp = 0;
   unsigned char* colonp = 0;
   const char* xdigits = 0;
+#if 0
   const char* curtok = 0;
+#endif
   int ch = 0;
   int seen_xdigits = 0;
   unsigned int val = 0;
@@ -141,8 +143,9 @@
           return (0);
         }
     }
+#if 0
   curtok = address;
-
+#endif
   while ((ch = *address++) != '\0')
     {
       const char *pch = 0;
@@ -165,7 +168,9 @@
         }
       if (ch == ':')
         {
+#if 0
           curtok = address;
+#endif
 
           if (!seen_xdigits)
             {