diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-11-04 16:19:54 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-11-04 16:28:36 +0100 |
commit | 1bcd37991fa57d9e966a6f96e7cbff59b16c28bd (patch) | |
tree | 8f1d2510091b4c6e642c3e2106669b7b5cf7a3e3 /print-ospf.c | |
parent | e928657754c208b880ad25cbeee0c8df5877c800 (diff) | |
download | tcpdump-1bcd37991fa57d9e966a6f96e7cbff59b16c28bd.tar.gz |
OSPF: Use %zu to print sizeof values
Diffstat (limited to 'print-ospf.c')
-rw-r--r-- | print-ospf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/print-ospf.c b/print-ospf.c index a385d7a1..8e6a003f 100644 --- a/print-ospf.c +++ b/print-ospf.c @@ -533,11 +533,11 @@ ospf_print_lshdr(netdissect_options *ndo, sizeof(struct lsa_hdr)); return(-1); } - ND_PRINT("\n\t Advertising Router %s, seq 0x%08x, age %us, length %u", + ND_PRINT("\n\t Advertising Router %s, seq 0x%08x, age %us, length %zu", GET_IPADDR_STRING(lshp->ls_router), GET_BE_U_4(lshp->ls_seq), GET_BE_U_2(lshp->ls_age), - ls_length - (u_int)sizeof(struct lsa_hdr)); + ls_length - sizeof(struct lsa_hdr)); ls_type = GET_U_1(lshp->ls_type); switch (ls_type) { /* the LSA header for opaque LSAs was slightly changed */ |