summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/rcmd.c
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2016-12-03 17:17:42 +0000
committerngie <ngie@FreeBSD.org>2016-12-03 17:17:42 +0000
commitde9c1e498c9083787fed20b89b77dce7f67d668e (patch)
tree4090ad0dc9bdc4f6d8760d071cac4a3cb7f3b346 /lib/libc/net/rcmd.c
parentbf027d30f65946c403cff801d75f469e39fa3e48 (diff)
downloadFreeBSD-src-de9c1e498c9083787fed20b89b77dce7f67d668e.zip
FreeBSD-src-de9c1e498c9083787fed20b89b77dce7f67d668e.tar.gz
MFC r297790:
r297790 (by pfg): libc: replace 0 with NULL for pointers. While here also cleanup some surrounding code; particularly drop some malloc() casts. Found with devel/coccinelle.
Diffstat (limited to 'lib/libc/net/rcmd.c')
-rw-r--r--lib/libc/net/rcmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/net/rcmd.c b/lib/libc/net/rcmd.c
index 1ba9888..a65c2a8 100644
--- a/lib/libc/net/rcmd.c
+++ b/lib/libc/net/rcmd.c
@@ -214,7 +214,7 @@ rcmd_af(ahost, rport, locuser, remuser, cmd, fd2p, af)
}
}
lport--;
- if (fd2p == 0) {
+ if (fd2p == NULL) {
_write(s, "", 1);
lport = 0;
} else {
OpenPOWER on IntegriCloud