diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-12-05 22:52:51 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-12-05 22:52:51 +0000 |
commit | 8cef2fc6316b4adbba933286d9e9bbeec9a70f3c (patch) | |
tree | 49b250f5558f917b7da10726a7b4743dd76ee1ad /usr.sbin/snmpd/mps.c | |
parent | fd3c05b551cee43749b85427fb4cae3645822e44 (diff) |
- add support joel's OPENBSD-SENSORS-MIB; it will dump the current
sensor status in a SNMP table.
- some other minor changes
Diffstat (limited to 'usr.sbin/snmpd/mps.c')
-rw-r--r-- | usr.sbin/snmpd/mps.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/snmpd/mps.c b/usr.sbin/snmpd/mps.c index 8a7c90ef887..4a82511f285 100644 --- a/usr.sbin/snmpd/mps.c +++ b/usr.sbin/snmpd/mps.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mps.c,v 1.1 2007/12/05 09:22:44 reyk Exp $ */ +/* $OpenBSD: mps.c,v 1.2 2007/12/05 22:52:50 reyk Exp $ */ /* * Copyright (c) 2007 Reyk Floeter <reyk@vantronix.net> @@ -377,12 +377,12 @@ mps_insert(struct oid *oid) } void -mps_mibtree(struct oid *oids, size_t n) +mps_mibtree(struct oid *oids) { struct oid *oid; size_t i; - for (i = 0; i < n; i++) { + for (i = 0; oids[i].o_name != NULL; i++) { oid = &oids[i]; mps_oidlen(&oid->o_id); if ((oid->o_flags & OID_TABLE) && oid->o_get == NULL) |