summaryrefslogtreecommitdiffstats
path: root/libexec/ftpd/popen.c
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2004-11-13 13:15:47 +0000
committeryar <yar@FreeBSD.org>2004-11-13 13:15:47 +0000
commit9e5ec41335ea4a9a5240e0ffcedb7946215e4ed6 (patch)
tree28e1903d02414cbd18530638262a9c7e379af4ce /libexec/ftpd/popen.c
parent0eb6213e4dd08c12836ee7748958a2e5301d2c3a (diff)
downloadFreeBSD-src-9e5ec41335ea4a9a5240e0ffcedb7946215e4ed6.zip
FreeBSD-src-9e5ec41335ea4a9a5240e0ffcedb7946215e4ed6.tar.gz
Kill ancient casts to integral types left from the K&R era.
They're unneeded and sometimes erroneous now.
Diffstat (limited to 'libexec/ftpd/popen.c')
-rw-r--r--libexec/ftpd/popen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/ftpd/popen.c b/libexec/ftpd/popen.c
index abc4ec2..05b6d6f 100644
--- a/libexec/ftpd/popen.c
+++ b/libexec/ftpd/popen.c
@@ -84,7 +84,7 @@ ftpd_popen(char *program, char *type)
if (!pids) {
if ((fds = getdtablesize()) <= 0)
return (NULL);
- if ((pids = (int *)malloc((u_int)(fds * sizeof(int)))) == NULL)
+ if ((pids = malloc(fds * sizeof(int))) == NULL)
return (NULL);
memset(pids, 0, fds * sizeof(int));
}
OpenPOWER on IntegriCloud