summaryrefslogtreecommitdiff
path: root/print-mptcp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-04-14 17:21:19 -0700
committerGuy Harris <guy@alum.mit.edu>2013-04-14 17:21:19 -0700
commite3591424ed82947e1fe791958ca917850948a370 (patch)
tree27d5d48bde6378584ebd4590e5534a5843884adc /print-mptcp.c
parent9716f7bd0f54ba52ef3faa6339ea8902fd39b0c3 (diff)
downloadtcpdump-e3591424ed82947e1fe791958ca917850948a370.tar.gz
Fix some compiler warnings.
Some of those warnings are real bugs - some routines whose callers expected them to return values weren't returning values.
Diffstat (limited to 'print-mptcp.c')
-rw-r--r--print-mptcp.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/print-mptcp.c b/print-mptcp.c
index 66b3adb1..551fcbd9 100644
--- a/print-mptcp.c
+++ b/print-mptcp.c
@@ -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 {