]> git.saurik.com Git - bison.git/blobdiff - src/getargs.c
tests: minor fixes/simplifications
[bison.git] / src / getargs.c
index 5e04ab0fcbcad77653435790c0a7e75b47ae4eb1..06e6e972be3ee13f26970fadac923dec92534e94 100644 (file)
@@ -102,7 +102,7 @@ flags_argmatch (const char *option,
       args = strtok (args, ",");
       while (args)
         {
-          int no = strncmp (args, "no-", 3) == 0 ? 3 : 0;
+          int no = STRPREFIX_LIT ("no-", args) ? 3 : 0;
           int value = XARGMATCH (option, args + no, keys, values);
           if (value == 0)
             {