diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-07-01 11:16:29 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-07-01 11:28:50 +0200 |
commit | 99250aed4e2c33bcaafc1f5217e18aca7eebdeb9 (patch) | |
tree | f3c020165bf6cbf81f7e3b3cc9d36d826352e013 /print-rsvp.c | |
parent | 52ad9e15b42a87c7477cd305d9cfd3afb5128976 (diff) | |
download | tcpdump-99250aed4e2c33bcaafc1f5217e18aca7eebdeb9.tar.gz |
RSVP: Make a constant unsigned
This change avoids:
print-rsvp.c:1205:40: runtime error: implicit conversion from type 'int'
of value -8 (32-bit, signed) to type 'unsigned int' changed the value
to 4294967288 (32-bit, unsigned)
#0 0x848e20f in rsvp_obj_print ./print-rsvp.c:1205:40
Diffstat (limited to 'print-rsvp.c')
-rw-r--r-- | print-rsvp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/print-rsvp.c b/print-rsvp.c index ea6ccfd7..e7754d32 100644 --- a/print-rsvp.c +++ b/print-rsvp.c @@ -341,7 +341,7 @@ struct rsvp_obj_frr_t { #define RSVP_OBJ_XRO_MASK_SUBOBJ(x) ((x)&0x7f) #define RSVP_OBJ_XRO_MASK_LOOSE(x) ((x)&0x80) -#define RSVP_OBJ_CAPABILITY_FLAGS_MASK 0x7 +#define RSVP_OBJ_CAPABILITY_FLAGS_MASK 0x7U #define RSVP_OBJ_XRO_RES 0 #define RSVP_OBJ_XRO_IPV4 1 |