From 5cea2703185c6af1616dc338c43c6cf67b0bec60 Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Wed, 13 Dec 2017 19:17:47 +0100 Subject: 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'. --- print-frag6.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'print-frag6.c') diff --git a/print-frag6.c b/print-frag6.c index fe8f3cf7..f1728f0c 100644 --- a/print-frag6.c +++ b/print-frag6.c @@ -33,10 +33,10 @@ #include "ip6.h" int -frag6_print(netdissect_options *ndo, register const u_char *bp, register const u_char *bp2) +frag6_print(netdissect_options *ndo, const u_char *bp, const u_char *bp2) { - register const struct ip6_frag *dp; - register const struct ip6_hdr *ip6; + const struct ip6_frag *dp; + const struct ip6_hdr *ip6; dp = (const struct ip6_frag *)bp; ip6 = (const struct ip6_hdr *)bp2; -- cgit v1.2.1