summaryrefslogtreecommitdiff
path: root/lib/zebra.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2016-11-28 17:46:55 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2016-11-28 17:46:55 +0100
commitbf31fc8174b6d130b90e6ee1a67c543c3c8f1615 (patch)
treee3242279b998a73675017c24b173ce3365c1947a /lib/zebra.h
parentddbaf941d9618125eb9d1a778c1f704c84109abf (diff)
lib: pre-remove str.[ch] for merge, move strmatch()
lib/str.[ch] was removed in cleaning up autoconf deadweight. best place for strmatch seems to be a #define in zebra.h Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/zebra.h')
-rw-r--r--lib/zebra.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/zebra.h b/lib/zebra.h
index 08c50c68bc..a37cdd9472 100644
--- a/lib/zebra.h
+++ b/lib/zebra.h
@@ -461,6 +461,8 @@ extern int proto_redistnum(int afi, const char *s);
extern const char *zserv_command_string (unsigned int command);
+#define strmatch(a,b) (!strcmp((a), (b)))
+
/* Error codes of zebra. */
#define ZEBRA_ERR_NOERROR 0
#define ZEBRA_ERR_RTEXIST -1