Deploy the new <ctype.h> and `foocmp' macros from mLib.
[catacomb] / misc / gfshare.c
index 80a6ef6..09acb40 100644 (file)
@@ -258,6 +258,8 @@ void gfshare_combine(gfshare *s, void *buf)
 
 #ifdef TEST_RIG
 
+#include <mLib/macros.h>
+
 #include "fibrand.h"
 
 static int verify(grand *r)
@@ -298,7 +300,7 @@ static int verify(grand *r)
   gfshare_combine(&s, sbuf);
   gfshare_destroy(&s);
 
-  if (memcmp(sec, sbuf, len) != 0) {
+  if (MEMCMP(sec, !=, sbuf, len)) {
     ok = 0;
     fprintf(stderr, "\nbad recombination of shares\n");
   };