mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 14:26:03 -04:00
Style: Don't treat pointers as booleans.
This commit is contained in:
parent
e95d61f1c2
commit
af08438611
1 changed files with 2 additions and 2 deletions
|
|
@ -117,7 +117,7 @@ main(int argc, char *argv[])
|
|||
if (*argv) {
|
||||
rval = 0;
|
||||
do {
|
||||
if (!freopen(filename = *argv, "r", stdin)) {
|
||||
if (freopen(filename = *argv, "r", stdin) == NULL) {
|
||||
warn("%s", *argv);
|
||||
rval = 1;
|
||||
continue;
|
||||
|
|
@ -243,7 +243,7 @@ decode2(void)
|
|||
|
||||
/* for each input line */
|
||||
for (;;) {
|
||||
if (!fgets(p = buf, sizeof(buf), stdin)) {
|
||||
if (fgets(p = buf, sizeof(buf), stdin) == NULL) {
|
||||
warnx("%s: short file", filename);
|
||||
return (1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue