From e3591424ed82947e1fe791958ca917850948a370 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 14 Apr 2013 17:21:19 -0700 Subject: Fix some compiler warnings. Some of those warnings are real bugs - some routines whose callers expected them to return values weren't returning values. --- print-mptcp.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'print-mptcp.c') 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 { -- cgit v1.2.1