Readability: Use streq instead of strcmp

This commit is contained in:
practicalswift
2018-03-05 17:49:12 +01:00
committed by Rusty Russell
parent 60a7720a24
commit b8846dad49

View File

@@ -12,7 +12,7 @@ static void hexeq(const void *p, size_t len, const char *hex)
{
char *tmphex = tal_hexstr(NULL, p, len);
if (strcmp(hex, tmphex)) {
if (!streq(hex, tmphex)) {
fprintf(stderr, "Expected '%s' got '%s'", hex, tmphex);
abort();
}