summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpcbind/check_bound.c
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-05-17 05:27:52 +0000
committerjmallett <jmallett@FreeBSD.org>2002-05-17 05:27:52 +0000
commitf6d289008c5938514430b8d1afd00d3711a33e56 (patch)
treed2a35e41434d5837169a7025a25d3d714137b4ab /usr.sbin/rpcbind/check_bound.c
parented1adbad3e9ffee245c5a657be186109a6f68b8d (diff)
downloadFreeBSD-src-f6d289008c5938514430b8d1afd00d3711a33e56.zip
FreeBSD-src-f6d289008c5938514430b8d1afd00d3711a33e56.tar.gz
Stop this program's abuse of malloc(3). Its return value doesn't need these
ugly explicit casts, and its argument doesn't need explicitly cast to u_int, especially if sizeof() is being used.
Diffstat (limited to 'usr.sbin/rpcbind/check_bound.c')
-rw-r--r--usr.sbin/rpcbind/check_bound.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/rpcbind/check_bound.c b/usr.sbin/rpcbind/check_bound.c
index e5f7081..c955506 100644
--- a/usr.sbin/rpcbind/check_bound.c
+++ b/usr.sbin/rpcbind/check_bound.c
@@ -117,7 +117,7 @@ add_bndlist(struct netconfig *nconf, struct netbuf *baddr)
newnconf = getnetconfigent(nconf->nc_netid);
if (newnconf == NULL)
return (-1);
- fdl = (struct fdlist *)malloc((u_int)sizeof (struct fdlist));
+ fdl = malloc(sizeof (struct fdlist));
if (fdl == NULL) {
freenetconfigent(newnconf);
syslog(LOG_ERR, "no memory!");
OpenPOWER on IntegriCloud