summaryrefslogtreecommitdiffstats
path: root/zebra/rtread_sysctl.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-08-24 19:14:09 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-09-06 22:56:41 +0200
commit364fed6b074a702f21e190cb7aff33e13c65e808 (patch)
tree5af486911acf99960cc4dc79bb0e4d281936fd97 /zebra/rtread_sysctl.c
parentbgpd: remove duplicate log_ref_add() (diff)
downloadfrr-364fed6b074a702f21e190cb7aff33e13c65e808.tar.xz
frr-364fed6b074a702f21e190cb7aff33e13c65e808.zip
zebra: fix includes
Add and remove error related includes as necessary. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
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;
}