summaryrefslogtreecommitdiffstats
path: root/libexec/ftpd/ftpd.c
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2004-07-31 15:03:17 +0000
committeryar <yar@FreeBSD.org>2004-07-31 15:03:17 +0000
commitd786b94f15a1fcab85df6a7b07d4911dfc2a44db (patch)
tree3b6b6c4f1ccd06097dda89df4ca3e1306e7624ee /libexec/ftpd/ftpd.c
parent06b7ed859fcdd8e379c1a413d95f865b62f16e31 (diff)
downloadFreeBSD-src-d786b94f15a1fcab85df6a7b07d4911dfc2a44db.zip
FreeBSD-src-d786b94f15a1fcab85df6a7b07d4911dfc2a44db.tar.gz
Change ``(foo *)0'' to ``NULL'' where it's possible
(and it appears possible throughout ftpd(8) source.) It is not a mere issue of style: Null pointers in C seem to have been mistaken one way or another quite often.
Diffstat (limited to 'libexec/ftpd/ftpd.c')
-rw-r--r--libexec/ftpd/ftpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index 75c41ac..46b1101 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -1910,7 +1910,7 @@ dataconn(char *name, off_t size, char *mode)
if ((flags = fcntl(pdata, F_GETFL, 0)) == -1 ||
fcntl(pdata, F_SETFL, flags | O_NONBLOCK) == -1)
goto pdata_err;
- if (select(pdata+1, &set, (fd_set *) 0, (fd_set *) 0, &timeout) <= 0 ||
+ if (select(pdata+1, &set, NULL, NULL, &timeout) <= 0 ||
(s = accept(pdata, (struct sockaddr *) &from, &fromlen)) < 0)
goto pdata_err;
(void) close(pdata);
OpenPOWER on IntegriCloud