Skip to content

Commit 22b4e0a

Browse files
committed
ICMPv6: Fix a Visual Studio 17 warning
print-icmp6.c(1537,36): warning C4267: 'function': conversion from 'size_t' to 'u_int', possible loss of data
1 parent a3b51fa commit 22b4e0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

print-icmp6.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ struct rr_result { /* router renumbering result message */
504504
static const char *get_rtpref(u_int);
505505
static const char *get_lifetime(uint32_t);
506506
static const char *get_pref64_len_repr(uint16_t);
507-
static void print_lladdr(netdissect_options *ndo, const u_char *, size_t);
507+
static void print_lladdr(netdissect_options *ndo, const u_char *, u_int);
508508
static int icmp6_opt_print(netdissect_options *ndo, const u_char *, int);
509509
static void mld6_print(netdissect_options *ndo, const u_char *);
510510
static void mldv2_report_print(netdissect_options *ndo, const u_char *, u_int);
@@ -799,7 +799,7 @@ get_pref64_len_repr(uint16_t v)
799799
}
800800

801801
static void
802-
print_lladdr(netdissect_options *ndo, const uint8_t *p, size_t l)
802+
print_lladdr(netdissect_options *ndo, const uint8_t *p, u_int l)
803803
{
804804
const uint8_t *ep, *q;
805805

@@ -1443,7 +1443,7 @@ icmp6_opt_print(netdissect_options *ndo, const u_char *bp, int resid)
14431443
const struct nd_opt_pref64 *op64;
14441444
const u_char *cp, *ep, *domp;
14451445
nd_ipv6 in6;
1446-
size_t l;
1446+
u_int l;
14471447
u_int i;
14481448
uint16_t w;
14491449

0 commit comments

Comments
 (0)