X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/1fa77a87dc53451189525b79fff72a0de13be322..c8a59b1d2a8b01e12a071a08810a9959f55a9fef:/print-rx.c diff --git a/print-rx.c b/print-rx.c index 4f019528..3f7589ea 100644 --- a/print-rx.c +++ b/print-rx.c @@ -40,7 +40,6 @@ #endif #include -#include #include #include "netdissect-stdinc.h" @@ -500,7 +499,7 @@ static int rx_cache_find(netdissect_options *, const struct rx_header *, static void fs_print(netdissect_options *, const u_char *, u_int); static void fs_reply_print(netdissect_options *, const u_char *, u_int, uint32_t); -static void acl_print(netdissect_options *, u_char *, u_char *); +static void acl_print(netdissect_options *, u_char *, const u_char *); static void cb_print(netdissect_options *, const u_char *, u_int); static void cb_reply_print(netdissect_options *, const u_char *, u_int, uint32_t); static void prot_print(netdissect_options *, const u_char *, u_int); @@ -1141,11 +1140,12 @@ trunc: * representing a logical OR of all the ACL permission bits */ +#define XSTRINGIFY(x) #x #define NUMSTRINGIFY(x) XSTRINGIFY(x) static void acl_print(netdissect_options *ndo, - u_char *s, u_char *end) + u_char *s, const u_char *end) { int pos, neg, acl; int n, i;