base/regdump.h: Pass cooked register index to `REGDEF_GPX86_COMMON'.
[catacomb] / utils / ecptdecompress.c
index 09e1f88..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"
@@ -126,12 +127,10 @@ int main(int argc, char *argv[])
     mp_drop(y); mp_drop(yy);
   }
 
-  if ((err = ec_checkinfo(&ei, &rand_global)) != 0) {
+  if ((err = ec_checkinfo(&ei, &rand_global)) != 0)
     fprintf(stderr, "bad curve: %s\n", err);
-    exit(0);
-  }
   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);
   }