summaryrefslogtreecommitdiff
path: root/print-rsvp.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-07-01 11:16:29 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-07-01 11:28:50 +0200
commit99250aed4e2c33bcaafc1f5217e18aca7eebdeb9 (patch)
treef3c020165bf6cbf81f7e3b3cc9d36d826352e013 /print-rsvp.c
parent52ad9e15b42a87c7477cd305d9cfd3afb5128976 (diff)
downloadtcpdump-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.c2
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