Browse Source

Readability: Use streq instead of strcmp

ppa-0.6.1
practicalswift 7 years ago
committed by Rusty Russell
parent
commit
b8846dad49
  1. 2
      bitcoin/test/run-tx-encode.c

2
bitcoin/test/run-tx-encode.c

@ -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();
}

Loading…
Cancel
Save