Deploy the new <ctype.h> and `foocmp' macros from mLib.
[catacomb] / rand / sslprf.c
index 06187b3..9601f4e 100644 (file)
@@ -310,6 +310,7 @@ grand *sslprf_rand(const gchash *hco, const gchash *hci,
 #include <stdio.h>
 #include <string.h>
 
+#include <mLib/macros.h>
 #include <mLib/quis.h>
 #include <mLib/testrig.h>
 
@@ -327,7 +328,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 sslprf:"
           "\n\tkey        = ");