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-ap1394.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'print-ap1394.c') diff --git a/print-ap1394.c b/print-ap1394.c index 869fbcb9..4c463ada 100644 --- a/print-ap1394.c +++ b/print-ap1394.c @@ -56,9 +56,9 @@ fwaddr_string(netdissect_options *ndo, const u_char *addr) } static inline void -ap1394_hdr_print(netdissect_options *ndo, register const u_char *bp, u_int length) +ap1394_hdr_print(netdissect_options *ndo, const u_char *bp, u_int length) { - register const struct firewire_header *fp; + const struct firewire_header *fp; uint16_t firewire_type; fp = (const struct firewire_header *)bp; -- cgit v1.2.1