X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/776d2da28318443431563b68c2807eb0c29c49fa..3618811496a6d131fd4bffa19e262c521d39e819:/struct/t/dstr-putf-test.c?ds=sidebyside diff --git a/struct/t/dstr-putf-test.c b/struct/t/dstr-putf-test.c index 5de7870..462371d 100644 --- a/struct/t/dstr-putf-test.c +++ b/struct/t/dstr-putf-test.c @@ -8,6 +8,7 @@ #include #include "dstr.h" +#include "macros.h" static int win = 0, lose = 0; static dstr d = DSTR_INIT; @@ -15,7 +16,7 @@ static char buf[1024]; static void check(const char *what, const char *want) { - if (strcmp(want, d.buf) == 0) + if (STRCMP(want, ==, d.buf)) win++; else { lose++;