summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2008-03-17 13:56:18 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2008-03-17 13:56:18 +0000
commit32ebc3bd1d177995752144a3932976109ced4b22 (patch)
treea9eeec3089b33fcd7b8fe98a3dc856550a9de388 /usr.sbin
parent8d122d45e8ed960b123b8da8c62584ba64165e30 (diff)
fix incorrect use of sizeof() where there sizeofa() macro should be used
ok dlg@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/snmpd/mib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/snmpd/mib.c b/usr.sbin/snmpd/mib.c
index 1955883c58a..2b2e55d5eff 100644
--- a/usr.sbin/snmpd/mib.c
+++ b/usr.sbin/snmpd/mib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mib.c,v 1.23 2008/03/16 00:35:05 dlg Exp $ */
+/* $OpenBSD: mib.c,v 1.24 2008/03/17 13:56:17 reyk Exp $ */
/*
* Copyright (c) 2007, 2008 Reyk Floeter <reyk@vantronix.net>
@@ -364,7 +364,7 @@ mib_hrmemory(struct oid *oid, struct ber_oid *o, struct ber_element **elm)
u_int64_t physmem;
size_t len = sizeof(physmem);
- if (sysctl(mib, sizeof(mib), &physmem, &len, NULL, 0) == -1)
+ if (sysctl(mib, sizeofa(mib), &physmem, &len, NULL, 0) == -1)
return (-1);
ber = ber_add_integer(ber, physmem / 1024);