summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdump/print-snmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/tcpdump/print-snmp.c')
-rw-r--r--usr.sbin/tcpdump/print-snmp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/tcpdump/print-snmp.c b/usr.sbin/tcpdump/print-snmp.c
index d0bdb853f5d..03da4781971 100644
--- a/usr.sbin/tcpdump/print-snmp.c
+++ b/usr.sbin/tcpdump/print-snmp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-snmp.c,v 1.18 2015/01/16 06:40:21 deraadt Exp $ */
+/* $OpenBSD: print-snmp.c,v 1.19 2015/11/16 00:16:39 mmcc Exp $ */
/*
* Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996, 1997
@@ -360,7 +360,7 @@ static int truncated;
* O/w, this returns the number of bytes parsed from "p".
*/
static int
-asn1_parse(register const u_char *p, u_int len, struct be *elem)
+asn1_parse(const u_char *p, u_int len, struct be *elem)
{
u_char form, class, id;
int i, hdr;
@@ -464,7 +464,7 @@ asn1_parse(register const u_char *p, u_int len, struct be *elem)
break;
case INTEGER: {
- register int32_t data;
+ int32_t data;
elem->type = BE_INT;
data = 0;
@@ -508,7 +508,7 @@ asn1_parse(register const u_char *p, u_int len, struct be *elem)
case OPAQUE:
case NSAPADDR:
case UINTEGER32: {
- register u_int32_t data;
+ u_int32_t data;
elem->type = BE_UNS;
data = 0;
for (i = elem->asnlen; i-- > 0; p++)
@@ -518,7 +518,7 @@ asn1_parse(register const u_char *p, u_int len, struct be *elem)
}
case COUNTER64: {
- register u_int64_t data;
+ u_int64_t data;
elem->type = BE_UNS64;
data = 0;
for (i = elem->asnlen; i-- > 0; p++)
@@ -656,7 +656,7 @@ asn1_print(struct be *elem)
break;
case BE_STR: {
- register int printable = 1, first = 1;
+ int printable = 1, first = 1;
const u_char *p = elem->data.str;
for (i = asnlen; printable && i-- > 0; p++)
printable = isprint(*p) || isspace(*p);