summaryrefslogtreecommitdiffstats
path: root/zebra/rtread_sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/rtread_sysctl.c')
-rw-r--r--zebra/rtread_sysctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/rtread_sysctl.c b/zebra/rtread_sysctl.c
index ca3ff2dc6..5f6b62df2 100644
--- a/zebra/rtread_sysctl.c
+++ b/zebra/rtread_sysctl.c
@@ -31,6 +31,7 @@
#include "zebra/rt.h"
#include "zebra/kernel_socket.h"
#include "zebra/zebra_pbr.h"
+#include "zebra/zebra_errors.h"
/* Kernel routing table read up by sysctl function. */
void route_read(struct zebra_ns *zns)
@@ -47,7 +48,7 @@ void route_read(struct zebra_ns *zns)
/* Get buffer size. */
if (sysctl(mib, MIBSIZ, NULL, &bufsiz, NULL, 0) < 0) {
- flog_warn(ZEBRA_ERR_ZEBRA_ERR_SYSCTL_FAILED, "sysctl fail: %s",
+ flog_warn(ZEBRA_ERR_SYSCTL_FAILED, "sysctl fail: %s",
safe_strerror(errno));
return;
}