diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-05-17 05:27:52 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-05-17 05:27:52 +0000 |
commit | f6d289008c5938514430b8d1afd00d3711a33e56 (patch) | |
tree | d2a35e41434d5837169a7025a25d3d714137b4ab /usr.sbin/rpcbind/check_bound.c | |
parent | ed1adbad3e9ffee245c5a657be186109a6f68b8d (diff) | |
download | FreeBSD-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.c | 2 |
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!"); |