summaryrefslogtreecommitdiff
path: root/print-decnet.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-11-03 12:06:05 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-11-03 12:06:05 +0100
commit42b25d9bb5cb7cce12a4a511f21ed6b3ec8638cd (patch)
tree8ed5b86616e69acf961fb4e6c6a80cdc18c69d97 /print-decnet.c
parentca8ca82e22164ec56dd8db3668fdc7f217ea5411 (diff)
downloadtcpdump-42b25d9bb5cb7cce12a4a511f21ed6b3ec8638cd.tar.gz
DECnet: Use %zu to print sizeof values
Diffstat (limited to 'print-decnet.c')
-rw-r--r--print-decnet.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/print-decnet.c b/print-decnet.c
index e1eaec32..6a6dd259 100644
--- a/print-decnet.c
+++ b/print-decnet.c
@@ -478,13 +478,13 @@ decnet_print(netdissect_options *ndo,
ndo->ndo_protocol = "decnet";
if (length < sizeof(struct shorthdr)) {
- ND_PRINT(" (length %u < %u)", length, (unsigned)sizeof(struct shorthdr));
+ ND_PRINT(" (length %u < %zu)", length, sizeof(struct shorthdr));
goto invalid;
}
pktlen = GET_LE_U_2(ap);
if (pktlen < sizeof(struct shorthdr)) {
- ND_PRINT(" (pktlen %u < %u)", pktlen, (unsigned)sizeof(struct shorthdr));
+ ND_PRINT(" (pktlen %u < %zu)", pktlen, sizeof(struct shorthdr));
goto invalid;
}
if (pktlen > length) {
@@ -529,7 +529,7 @@ decnet_print(netdissect_options *ndo,
switch (mflags & RMF_MASK) {
case RMF_LONG:
if (length < sizeof(struct longhdr)) {
- ND_PRINT(" (length %u < %u)", length, (unsigned)sizeof(struct longhdr));
+ ND_PRINT(" (length %u < %zu)", length, sizeof(struct longhdr));
goto invalid;
}
ND_TCHECK_SIZE(&rhp->rh_long);
@@ -799,7 +799,7 @@ print_nsp(netdissect_options *ndo,
u_int dst, src, flags;
if (nsplen < sizeof(struct nsphdr)) {
- ND_PRINT(" (nsplen %u < %u)", nsplen, (unsigned)sizeof(struct nsphdr));
+ ND_PRINT(" (nsplen %u < %zu)", nsplen, sizeof(struct nsphdr));
goto invalid;
}
flags = GET_U_1(nsphp->nh_flags);