Deploy the new <ctype.h> and `foocmp' macros from mLib.
[catacomb] / rand / tlsprf.c
index fa28faf..95f5b94 100644 (file)
@@ -493,6 +493,7 @@ grand *tlsprf_rand(const gcmac *mcx, const gcmac *mcy,
 #include <stdio.h>
 #include <string.h>
 
+#include <mLib/macros.h>
 #include <mLib/quis.h>
 #include <mLib/testrig.h>
 
@@ -511,7 +512,7 @@ static int v_generate(dstr *v)
   d.len = v[2].len;
   g->ops->fill(g, d.buf, d.len);
   g->ops->destroy(g);
-  if (memcmp(v[2].buf, d.buf, d.len) != 0) {
+  if (MEMCMP(v[2].buf, !=, d.buf, d.len)) {
     ok = 0;
     printf("\nfail tlsprf:"
           "\n\tkey        = ");