Tweak NULL-pointer checks

Use !p and p when comparing pointers as opposed to explicit
checks against NULL.  This is generally easier to read.
This commit is contained in:
FRIGN
2014-11-13 22:16:29 +01:00
committed by sin
parent ec8246bbc6
commit 7fc5856e64
8 changed files with 20 additions and 20 deletions

View File

@@ -114,7 +114,7 @@ cksum(FILE *fp, const char *s)
ck = (ck << 8) ^ crctab[(ck >> 24) ^ (i & 0xFF)];
printf("%"PRIu32" %lu", ~ck, (unsigned long)len);
if (s != NULL)
if (s)
printf(" %s", s);
putchar('\n');
}