Deploy the new <ctype.h> and `foocmp' macros from mLib.
[catacomb] / utils / ecptdecompress.c
index e438696..61fb79f 100644 (file)
@@ -5,6 +5,7 @@
 #include <mLib/alloc.h>
 #include <mLib/hex.h>
 #include <mLib/dstr.h>
+#include <mLib/macros.h>
 
 #include "ec.h"
 #include "mp.h"
@@ -129,7 +130,7 @@ int main(int argc, char *argv[])
   if ((err = ec_checkinfo(&ei, &rand_global)) != 0)
     fprintf(stderr, "bad curve: %s\n", err);
   puthex("p", ei.c->f->m, 0);
-  if (strcmp(F_NAME(ei.c->f), "binnorm") == 0) {
+  if (STRCMP(F_NAME(ei.c->f), ==, "binnorm")) {
     fctx_binnorm *fc = (fctx_binnorm *)ei.c->f;
     puthex("beta", fc->ntop.r[fc->ntop.n - 1], c->f->noctets);
   }