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-enc.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-enc.c')
-rw-r--r-- | print-enc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/print-enc.c b/print-enc.c index 4a43a491..c3fcf10c 100644 --- a/print-enc.c +++ b/print-enc.c @@ -87,10 +87,10 @@ struct enchdr { u_int enc_if_print(netdissect_options *ndo, - const struct pcap_pkthdr *h, register const u_char *p) + const struct pcap_pkthdr *h, const u_char *p) { - register u_int length = h->len; - register u_int caplen = h->caplen; + u_int length = h->len; + u_int caplen = h->caplen; int flags; const struct enchdr *hdr; |