@cryptotaxi247 / netdata-1 / commits / b24a35e1c

reverted strcmp()

Costa Tsaousis (ktsaou) committed Jan 21, 2017 at 18:12 UTC b24a35e1c11ed07698c819e422f7f7d1045a479c
2 files changed +10 -10
src/freebsd_sysctl.c
+5 -5
@@ -2127,11 +2127,11 @@ int do_freebsd_sysctl(int update_every, usec_t dt) {
2127 if (mntbuf[i].f_flags == MNT_RDONLY ||
2128 mntbuf[i].f_blocks == 0 ||
2129 // taken from gnulib/mountlist.c and shortened to FreeBSD related fstypes
2130 - strsame(mntbuf[i].f_fstypename, "autofs") == 0 ||
2131 - strsame(mntbuf[i].f_fstypename, "procfs") == 0 ||
2132 - strsame(mntbuf[i].f_fstypename, "subfs") == 0 ||
2133 - strsame(mntbuf[i].f_fstypename, "devfs") == 0 ||
2134 - strsame(mntbuf[i].f_fstypename, "none") == 0)
2130 + strcmp(mntbuf[i].f_fstypename, "autofs") == 0 ||
2131 + strcmp(mntbuf[i].f_fstypename, "procfs") == 0 ||
2132 + strcmp(mntbuf[i].f_fstypename, "subfs") == 0 ||
2133 + strcmp(mntbuf[i].f_fstypename, "devfs") == 0 ||
2134 + strcmp(mntbuf[i].f_fstypename, "none") == 0)
2135 continue;
2136
2137 // --------------------------------------------------------------------------
src/macos_fw.c
+5 -5
@@ -330,11 +330,11 @@ int do_macos_iokit(int update_every, usec_t dt) {
330 if (mntbuf[i].f_flags == MNT_RDONLY ||
331 mntbuf[i].f_blocks == 0 ||
332 // taken from gnulib/mountlist.c and shortened to FreeBSD related fstypes
333 - strsame(mntbuf[i].f_fstypename, "autofs") == 0 ||
334 - strsame(mntbuf[i].f_fstypename, "procfs") == 0 ||
335 - strsame(mntbuf[i].f_fstypename, "subfs") == 0 ||
336 - strsame(mntbuf[i].f_fstypename, "devfs") == 0 ||
337 - strsame(mntbuf[i].f_fstypename, "none") == 0)
333 + strcmp(mntbuf[i].f_fstypename, "autofs") == 0 ||
334 + strcmp(mntbuf[i].f_fstypename, "procfs") == 0 ||
335 + strcmp(mntbuf[i].f_fstypename, "subfs") == 0 ||
336 + strcmp(mntbuf[i].f_fstypename, "devfs") == 0 ||
337 + strcmp(mntbuf[i].f_fstypename, "none") == 0)
338 continue;
339
340 // --------------------------------------------------------------------------