From b8846dad49e96957fd1850582091e6e83dae16a9 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Mon, 5 Mar 2018 17:49:12 +0100 Subject: [PATCH] Readability: Use streq instead of strcmp --- bitcoin/test/run-tx-encode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/test/run-tx-encode.c b/bitcoin/test/run-tx-encode.c index a04be0311..711f83226 100644 --- a/bitcoin/test/run-tx-encode.c +++ b/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(); }