]> git.ipfire.org Git - thirdparty/bird.git/blobdiff - lib/string.h
Merge remote-tracking branch 'origin/mq-filter-stack'
[thirdparty/bird.git] / lib / string.h
index 6e549cb7ba141cc8d161bb4eed408e1bae9c477f..d6ae5ef7587fc8546239b53ec1c1a33d0c3c1cd1 100644 (file)
@@ -63,6 +63,15 @@ memset32(void *D, u32 val, uint n)
     dst[i] = val;
 }
 
+static inline int
+bstrcmp(const char *s1, const char *s2)
+{
+  if (s1 && s2)
+    return strcmp(s1, s2);
+  else
+    return !s2 - !s1;
+}
+
 #define ROUTER_ID_64_LENGTH 23
 
 #endif