mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-08 06:48:28 +00:00
bb25fde924
o Add ${NET_SNMP_MIB_MODULES} which is "host smux ucd-snmp/diskio" by default. o Remove unused variables. o Update various local patches around {tcp,udp}Table and hr_{storage,system}.
24 lines
611 B
C
24 lines
611 B
C
--- agent/mibgroup/host/hr_system.c.orig Fri Nov 14 14:45:55 2003
|
|
+++ agent/mibgroup/host/hr_system.c Fri Nov 14 14:46:01 2003
|
|
@@ -276,11 +276,10 @@
|
|
struct utmp *utmp_p;
|
|
#endif
|
|
|
|
+#ifndef UTMP_HAS_NO_TYPE
|
|
setutent();
|
|
while ((utmp_p = getutent()) != NULL) {
|
|
-#ifndef UTMP_HAS_NO_TYPE
|
|
if (utmp_p->ut_type == USER_PROCESS) {
|
|
-#endif
|
|
/* This block of code fixes zombie user PIDs in the
|
|
utmp/utmpx file that would otherwise be counted as a
|
|
current user */
|
|
@@ -293,6 +292,7 @@
|
|
}
|
|
}
|
|
endutent();
|
|
+#endif
|
|
return total;
|
|
}
|
|
|