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-ip6.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'print-ip6.c') diff --git a/print-ip6.c b/print-ip6.c index 3b63639e..72297aae 100644 --- a/print-ip6.c +++ b/print-ip6.c @@ -215,12 +215,12 @@ nextproto6_cksum(netdissect_options *ndo, void ip6_print(netdissect_options *ndo, const u_char *bp, u_int length) { - register const struct ip6_hdr *ip6; - register int advance; + const struct ip6_hdr *ip6; + int advance; u_int len; const u_char *ipend; - register const u_char *cp; - register u_int payload_len; + const u_char *cp; + u_int payload_len; u_int nh; int fragmented = 0; u_int flow; -- cgit v1.2.1