From: Baptiste Peugnez Date: Tue, 3 Feb 2015 07:46:05 +0000 (+0100) Subject: gencode.c / gencode.h : Type of variable "masklen" X-Git-Tag: libpcap-1.7.2^2~75^2~1 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/323dc2a81688bb2c734c015263e7ff9d87cc4bba gencode.c / gencode.h : Type of variable "masklen" Correction of the type of "masklen" variable: "unsigned int" --- diff --git a/gencode.c b/gencode.c index aefd38b6..c2ce8b73 100644 --- a/gencode.c +++ b/gencode.c @@ -6525,7 +6525,7 @@ gen_scode(name, q) struct block * gen_mcode(s1, s2, masklen, q) register const char *s1, *s2; - register int masklen; + register unsigned int masklen; struct qual q; { register int nlen, mlen; @@ -6684,7 +6684,7 @@ gen_ncode(s, v, q) struct block * gen_mcode6(s1, s2, masklen, q) register const char *s1, *s2; - register int masklen; + register unsigned int masklen; struct qual q; { struct addrinfo *res; diff --git a/gencode.h b/gencode.h index e6b3a71e..6ffee53b 100644 --- a/gencode.h +++ b/gencode.h @@ -294,9 +294,9 @@ void gen_not(struct block *); struct block *gen_scode(const char *, struct qual); struct block *gen_ecode(const u_char *, struct qual); struct block *gen_acode(const u_char *, struct qual); -struct block *gen_mcode(const char *, const char *, int, struct qual); +struct block *gen_mcode(const char *, const char *, unsigned int, struct qual); #ifdef INET6 -struct block *gen_mcode6(const char *, const char *, int, struct qual); +struct block *gen_mcode6(const char *, const char *, unsigned int, struct qual); #endif struct block *gen_ncode(const char *, bpf_u_int32, struct qual); struct block *gen_proto_abbrev(int);