From: Guy Harris Date: Mon, 6 May 2013 01:31:48 +0000 (-0700) Subject: Fix some compiler warnings from the previous checkin. X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/a4e68c37edda11f25e859b17f0b490b9b4a73f66 Fix some compiler warnings from the previous checkin. --- diff --git a/print-mptcp.c b/print-mptcp.c index 86c752b7..edcfe079 100644 --- a/print-mptcp.c +++ b/print-mptcp.c @@ -103,7 +103,7 @@ static int mp_join_print(const u_char *opt, u_int opt_len, u_char flags) EXTRACT_32BITS(&mpj->u.synack.nonce)); break; case 24: {/* ACK */ - int i; + size_t i; printf(" hmac 0x"); for (i = 0; i < sizeof(mpj->u.ack.mac); ++i) printf("%02x", mpj->u.ack.mac[i]); @@ -219,7 +219,7 @@ static int mp_prio_print(const u_char *opt, u_int opt_len, u_char flags _U_) return 1; } -static int mp_fail_print(const u_char *opt, u_int opt_len, u_char flags) +static int mp_fail_print(const u_char *opt, u_int opt_len, u_char flags _U_) { if (opt_len != 12) return 0; @@ -228,7 +228,7 @@ static int mp_fail_print(const u_char *opt, u_int opt_len, u_char flags) return 1; } -static int mp_fast_close_print(const u_char *opt, u_int opt_len, u_char flags) +static int mp_fast_close_print(const u_char *opt, u_int opt_len, u_char flags _U_) { if (opt_len != 12) return 0;