summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/rcmd.c
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2016-04-10 19:33:58 +0000
committerpfg <pfg@FreeBSD.org>2016-04-10 19:33:58 +0000
commit6e91d78151e10ed31c475cafe6a1e1f11950c1d9 (patch)
tree6796a0cd32cea8fd5591b7f2c6d10ae7f153ccb9 /lib/libc/net/rcmd.c
parent1485828b0840fbefcb7789ae54df9650c16fda61 (diff)
downloadFreeBSD-src-6e91d78151e10ed31c475cafe6a1e1f11950c1d9.zip
FreeBSD-src-6e91d78151e10ed31c475cafe6a1e1f11950c1d9.tar.gz
libc: replace 0 with NULL for pointers.
While here also cleanup some surrounding code; particularly drop some malloc() casts. Found with devel/coccinelle. Reviewed by: bde (previous version - all new bugs are mine)
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 c7ca870..7b92f08 100644
--- a/lib/libc/net/rcmd.c
+++ b/lib/libc/net/rcmd.c
@@ -207,7 +207,7 @@ rcmd_af(char **ahost, int rport, const char *locuser, const char *remuser,
}
}
lport--;
- if (fd2p == 0) {
+ if (fd2p == NULL) {
_write(s, "", 1);
lport = 0;
} else {
OpenPOWER on IntegriCloud