Page MenuHomeFreeBSD

D9943.diff
No OneTemporary

D9943.diff

Index: head/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_fs_tbl.c
===================================================================
--- head/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_fs_tbl.c
+++ head/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_fs_tbl.c
@@ -143,7 +143,7 @@
{ "hpfs", &OIDX_hrFSHPFS_c },
{ "smbfs", &OIDX_hrFSOther_c },
};
-#define N_FS_TYPE_MAP (sizeof(fs_type_map) / sizeof(fs_type_map[0]))
+#define N_FS_TYPE_MAP nitems(fs_type_map)
/**
* Create an entry into the FS table and an entry in the map (if needed).

File Metadata

Mime Type
text/plain
Expires
Wed, Aug 26, 10:12 PM (14 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37331751
Default Alt Text
D9943.diff (545 B)

Event Timeline