Deploy the new <ctype.h> and `foocmp' macros from mLib.
[catacomb] / key / key-flags.c
index 169de2c..7cedb85 100644 (file)
@@ -32,6 +32,7 @@
 
 #include <mLib/bits.h>
 #include <mLib/dstr.h>
+#include <mLib/macros.h>
 
 #include "key-data.h"
 
@@ -104,10 +105,10 @@ int key_readflags(const char *p, char **pp, unsigned *ff, unsigned *mm)
 
     /* --- Look up the string in the flags table --- */
 
-    if (sz == 4 && strncmp(p, "none", 4) == 0)
+    if (sz == 4 && STRNCMP(p, ==, "none", 4))
       goto next;
     for (e = flagtab; e->name; e++) {
-      if (strncmp(e->name, p, sz) == 0) {
+      if (STRNCMP(e->name, ==, p, sz)) {
        if (e->name[sz] == 0) {
          ee = e;
          break;