mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 23:54:22 +01:00
Readability: Use streq instead of strcmp
This commit is contained in:
committed by
Rusty Russell
parent
60a7720a24
commit
b8846dad49
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user