summaryrefslogtreecommitdiff
path: root/usr.sbin/snmpd/ber.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/snmpd/ber.c')
-rw-r--r--usr.sbin/snmpd/ber.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/snmpd/ber.c b/usr.sbin/snmpd/ber.c
index adb9979df75..4db46def32a 100644
--- a/usr.sbin/snmpd/ber.c
+++ b/usr.sbin/snmpd/ber.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ber.c,v 1.2 2007/12/05 23:29:19 reyk Exp $ */
+/* $OpenBSD: ber.c,v 1.3 2007/12/07 09:50:51 reyk Exp $ */
/*
* Copyright (c) 2007 Reyk Floeter <reyk@vantronix.net>
@@ -489,6 +489,10 @@ ber_printf_elements(struct ber_element *ber, char *fmt, ...)
d = va_arg(ap, int);
ber = ber_add_boolean(ber, d);
break;
+ case 'd':
+ d = va_arg(ap, int);
+ ber = ber_add_integer(ber, d);
+ break;
case 'e':
e = va_arg(ap, struct ber_element *);
ber_link_elements(ber, e);