]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Squelch a signed vs. unsigned comparison warning.
authorGuy Harris <[email protected]>
Sat, 22 Jun 2013 22:02:42 +0000 (15:02 -0700)
committerGuy Harris <[email protected]>
Sat, 22 Jun 2013 22:02:42 +0000 (15:02 -0700)
(At that point, we've already checked whether rc is < 0, so we know it's
not.)

print-babel.c

index 58faca158ebfa512f67aeb84b832aef7b7fe85ec..129ace937a2f4d6dd4ccb1c6aedd43eafb0816e9 100644 (file)
@@ -451,7 +451,7 @@ babel_print_v2(const u_char *cp, u_int length) {
                         memcpy(v6_prefix, prefix, 16);
                 }
                 /* extra data? */
-                if(rc < len - 10)
+                if((u_int)rc < len - 10)
                     subtlvs_print(message + 12 + rc, message + 2 + len, type);
             }
         }