diff options
author | 2020-05-31 20:38:28 +0000 | |
---|---|---|
committer | 2020-05-31 20:38:28 +0000 | |
commit | 33ca237a0cbfd854b058d79eeee5e4172755f2f1 (patch) | |
tree | c54a8d786386781f8f7e4e7296e926fd7a967382 | |
parent | add umstc(4) for Microsoft Surface Type Cover keyboards (diff) | |
download | wireguard-openbsd-33ca237a0cbfd854b058d79eeee5e4172755f2f1.tar.xz wireguard-openbsd-33ca237a0cbfd854b058d79eeee5e4172755f2f1.zip |
OIDs are unsigned. Reflect this when printing them.
-rw-r--r-- | usr.bin/snmp/smi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/snmp/smi.c b/usr.bin/snmp/smi.c index 9d79452fc3c..e6955095a3e 100644 --- a/usr.bin/snmp/smi.c +++ b/usr.bin/snmp/smi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smi.c,v 1.8 2020/05/19 13:41:01 martijn Exp $ */ +/* $OpenBSD: smi.c,v 1.9 2020/05/31 20:38:28 martijn Exp $ */ /* * Copyright (c) 2019 Martijn van Duren <martijn@openbsd.org> @@ -549,7 +549,7 @@ smi_oid2string(struct ber_oid *o, char *buf, size_t len, continue; } } else - snprintf(str, sizeof(str), "%d", key.o_oid[i]); + snprintf(str, sizeof(str), "%u", key.o_oid[i]); if (*buf != '\0' || i == 0) strlcat(buf, ".", len); strlcat(buf, str, len); |