mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Silence a warning on systems without carp(4).
This commit is contained in:
parent
811787079b
commit
45125e147a
1 changed files with 2 additions and 1 deletions
|
|
@ -540,7 +540,8 @@ carp_stats(u_long off, const char *name, int af1 __unused)
|
|||
memset(&zerostat, 0, len);
|
||||
if (sysctlbyname("net.inet.carp.stats", &carpstat, &len,
|
||||
zflag ? &zerostat : NULL, zflag ? len : 0) < 0) {
|
||||
warn("sysctl: net.inet.carp.stats");
|
||||
if (errno != ENOENT)
|
||||
warn("sysctl: net.inet.carp.stats");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue