diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-13 19:17:47 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-13 19:17:47 +0100 |
commit | 5cea2703185c6af1616dc338c43c6cf67b0bec60 (patch) | |
tree | 004fe256b821973a0f2d249665b32666b6333490 /print-pim.c | |
parent | e9306685c6fa9f76350334930ae14a935673f06b (diff) | |
download | tcpdump-5cea2703185c6af1616dc338c43c6cf67b0bec60.tar.gz |
Remove all storage class specifier 'register'
Let the compiler do the optimizations (or not) based on build options.
Avoid 'value has been optimized out' messages in gdb using '-O0'.
Diffstat (limited to 'print-pim.c')
-rw-r--r-- | print-pim.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/print-pim.c b/print-pim.c index c479c7b0..8e52de5a 100644 --- a/print-pim.c +++ b/print-pim.c @@ -137,11 +137,11 @@ struct pim { u_short pim_cksum; /* IP style check sum */ }; -static void pimv2_print(netdissect_options *, register const u_char *bp, register u_int len, const u_char *); +static void pimv2_print(netdissect_options *, const u_char *bp, u_int len, const u_char *); static void pimv1_join_prune_print(netdissect_options *ndo, - register const u_char *bp, register u_int len) + const u_char *bp, u_int len) { int ngroups, njoin, nprune; int njp; @@ -249,9 +249,9 @@ trunc: void pimv1_print(netdissect_options *ndo, - register const u_char *bp, register u_int len) + const u_char *bp, u_int len) { - register u_char type; + u_char type; ND_TCHECK_1(bp + 1); type = EXTRACT_U_1(bp + 1); @@ -343,7 +343,7 @@ trunc: */ void cisco_autorp_print(netdissect_options *ndo, - register const u_char *bp, register u_int len) + const u_char *bp, u_int len) { int type; int numrps; @@ -453,9 +453,9 @@ trunc: void pim_print(netdissect_options *ndo, - register const u_char *bp, register u_int len, const u_char *bp2) + const u_char *bp, u_int len, const u_char *bp2) { - register const struct pim *pim = (const struct pim *)bp; + const struct pim *pim = (const struct pim *)bp; #ifdef notyet /* currently we see only version and type */ ND_TCHECK(pim->pim_rsv); @@ -692,9 +692,9 @@ pimv2_check_checksum(netdissect_options *ndo, const u_char *bp, static void pimv2_print(netdissect_options *ndo, - register const u_char *bp, register u_int len, const u_char *bp2) + const u_char *bp, u_int len, const u_char *bp2) { - register const struct pim *pim = (const struct pim *)bp; + const struct pim *pim = (const struct pim *)bp; int advance; enum checksum_status cksum_status; int pimv2_addr_len; |