]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Fix some compiler warnings.
authorGuy Harris <[email protected]>
Mon, 15 Apr 2013 00:21:19 +0000 (17:21 -0700)
committerGuy Harris <[email protected]>
Mon, 15 Apr 2013 00:21:19 +0000 (17:21 -0700)
Some of those warnings are real bugs - some routines whose callers
expected them to return values weren't returning values.

print-mptcp.c

index 66b3adb1eac2dc62c2a04516063832d22c02dae3..551fcbd9d9b280d6b877362f3dde44ad4bebb897 100644 (file)
@@ -48,7 +48,7 @@
 #include "ipproto.h"
 #include "mptcp.h"
 
-static int dummy_print(const u_char *opt, u_int opt_len)
+static int dummy_print(const u_char *opt _U_, u_int opt_len _U_)
 {
         return 1;
 }
@@ -170,16 +170,18 @@ static int mp_prio_print(const u_char *opt, u_int opt_len)
         return 1;
 }
 
-static int mp_fail_print(const u_char *opt, u_int opt_len)
+static int mp_fail_print(const u_char *opt, u_int opt_len _U_)
 {
         opt += 4;
         printf(" seq %" PRIu64, EXTRACT_64BITS(opt));
+        return 1;
 }
 
-static int mp_fast_close_print(const u_char *opt, u_int opt_len)
+static int mp_fast_close_print(const u_char *opt, u_int opt_len _U_)
 {
         opt += 4;
         printf(" key 0x%" PRIx64, *((uint64_t *)opt));
+        return 1;
 }
 
 static struct {