summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsnmpd
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2009-11-15 16:44:43 +0000
committerattilio <attilio@FreeBSD.org>2009-11-15 16:44:43 +0000
commit9dd892aeae833cc67a6f5e8d602972bbedec5eb6 (patch)
treea803af1c94671a1fcfeeaba899652b29e87f3253 /usr.sbin/bsnmpd
parentd1297db1aeb036a628e2f6fc5bd24e6f91cdb7b0 (diff)
downloadFreeBSD-src-9dd892aeae833cc67a6f5e8d602972bbedec5eb6.zip
FreeBSD-src-9dd892aeae833cc67a6f5e8d602972bbedec5eb6.tar.gz
Collapse devinfo_state_t with device_state_t in order to avoid a
structure replication and improve manteneability. Reviewed by: jhb, imp Tested by: Riccardo Torrini <riccardo at torrini dot org>
Diffstat (limited to 'usr.sbin/bsnmpd')
-rw-r--r--usr.sbin/bsnmpd/modules/snmp_hostres/hostres_device_tbl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_device_tbl.c b/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_device_tbl.c
index 7e81436..cb38145 100644
--- a/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_device_tbl.c
+++ b/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_device_tbl.c
@@ -352,11 +352,11 @@ device_get_status(struct devinfo_dev *dev)
assert(dev != NULL);
switch (dev->dd_state) {
- case DIS_ALIVE: /* probe succeeded */
- case DIS_NOTPRESENT: /* not probed or probe failed */
+ case DS_ALIVE: /* probe succeeded */
+ case DS_NOTPRESENT: /* not probed or probe failed */
return (DS_DOWN);
- case DIS_ATTACHED: /* attach method called */
- case DIS_BUSY: /* device is open */
+ case DS_ATTACHED: /* attach method called */
+ case DS_BUSY: /* device is open */
return (DS_RUNNING);
default:
return (DS_UNKNOWN);
OpenPOWER on IntegriCloud