summaryrefslogtreecommitdiff
path: root/usr.sbin/rpc.statd/procs.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-08-20 22:39:31 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-08-20 22:39:31 +0000
commitaa0cb4643fc13729e7874a5eb16e9eecd90c1ced (patch)
tree1b6337f56b8a55bfda6bab69525fe62675d14e0e /usr.sbin/rpc.statd/procs.c
parent6e5d9523d6273368df6377a4db98a9533d11505c (diff)
stdlib.h is in scope; do not cast malloc/calloc/realloc*
ok millert krw
Diffstat (limited to 'usr.sbin/rpc.statd/procs.c')
-rw-r--r--usr.sbin/rpc.statd/procs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rpc.statd/procs.c b/usr.sbin/rpc.statd/procs.c
index 285a7b88afb..548d797d49e 100644
--- a/usr.sbin/rpc.statd/procs.c
+++ b/usr.sbin/rpc.statd/procs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: procs.c,v 1.1 2008/06/15 04:43:28 sturm Exp $ */
+/* $OpenBSD: procs.c,v 1.2 2015/08/20 22:39:29 deraadt Exp $ */
/*
* Copyright (c) 1995
@@ -113,7 +113,7 @@ sm_mon_1_svc(mon *arg, struct svc_req *req)
if ((hp = find_host(arg->mon_id.mon_name, &h)) == NULL)
memset(hp = &h, 0, sizeof(h));
- lp = (MonList *)malloc(sizeof(MonList));
+ lp = malloc(sizeof(MonList));
if (!lp)
syslog(LOG_ERR, "Out of memory");
else {