Deploy the new <ctype.h> and `foocmp' macros from mLib.
[catacomb] / progs / cc-subcmd.c
index 83c4a78..d593a1a 100644 (file)
@@ -29,6 +29,7 @@
 
 #define _FILE_OFFSET_BITS 64
 
+#include <mLib/macros.h>
 #include <mLib/quis.h>
 #include <mLib/report.h>
 
@@ -53,7 +54,7 @@ const cmd *findcmd(const cmd *cmds, const char *name)
   size_t sz = strlen(name);
 
   for (c = cmds; c->name; c++) {
-    if (strncmp(name, c->name, sz) == 0) {
+    if (STRNCMP(name, ==, c->name, sz)) {
       if (c->name[sz] == 0) {
        chosen = c;
        break;