summaryrefslogtreecommitdiffstats
path: root/usr.bin/login
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2007-09-21 01:55:11 +0000
committerkevlo <kevlo@FreeBSD.org>2007-09-21 01:55:11 +0000
commitee96f0aa6f321a84319c55663b2a1def01470a55 (patch)
tree813441e72922e9af186945ffa372cb1f915e6a11 /usr.bin/login
parenta9d79aef66de5019536c4de3155086af3fe25cdf (diff)
downloadFreeBSD-src-ee96f0aa6f321a84319c55663b2a1def01470a55.zip
FreeBSD-src-ee96f0aa6f321a84319c55663b2a1def01470a55.tar.gz
Use NULL instead of 0 for the return value of fopen().
Approved by: re (kensmith)
Diffstat (limited to 'usr.bin/login')
-rw-r--r--usr.bin/login/login_fbtab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/login/login_fbtab.c b/usr.bin/login/login_fbtab.c
index 684cf61..f6111a1 100644
--- a/usr.bin/login/login_fbtab.c
+++ b/usr.bin/login/login_fbtab.c
@@ -93,8 +93,8 @@ gid_t gid;
int prot;
const char *table;
- if ((fp = fopen(table = _PATH_FBTAB, "r")) == 0
- && (fp = fopen(table = _PATH_LOGINDEVPERM, "r")) == 0)
+ if ((fp = fopen(table = _PATH_FBTAB, "r")) == NULL
+ && (fp = fopen(table = _PATH_LOGINDEVPERM, "r")) == NULL)
return;
while (fgets(buf, sizeof(buf), fp)) {
OpenPOWER on IntegriCloud