]> The Tcpdump Group git mirrors - tcpdump/commitdiff
RX: Add a const qualifier
authorFrancois-Xavier Le Bail <[email protected]>
Wed, 2 Mar 2022 20:13:13 +0000 (21:13 +0100)
committerGuy Harris <[email protected]>
Sun, 17 Jul 2022 05:49:52 +0000 (22:49 -0700)
(cherry picked from commit c43334b0d460eaee9de0a9186f2fb16ffe3d9ca9)

print-rx.c

index a9eccb914eb58b417d8aec5ed39d31f4902241e0..3f7589ea6bd517afe1cd7c714ccabdcdda70cf13 100644 (file)
@@ -499,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);
@@ -1145,7 +1145,7 @@ trunc:
 
 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;