summaryrefslogtreecommitdiff
path: root/sbin/init
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-08-20 22:02:22 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-08-20 22:02:22 +0000
commit999d668af49ba65ca209316fb879a8459e9f850e (patch)
treec9473babdf7ff29e941f183a4a1929fba6c63699 /sbin/init
parent9e6263b04dc3a7a8ef2f02175efe20fe4ab2097a (diff)
<stdlib.h> is included, so do not need to cast result from
malloc, calloc, realloc* ok krw millert
Diffstat (limited to 'sbin/init')
-rw-r--r--sbin/init/init.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/init/init.c b/sbin/init/init.c
index 210ee739375..9d35d99a94d 100644
--- a/sbin/init/init.c
+++ b/sbin/init/init.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init.c,v 1.53 2015/07/14 19:14:05 millert Exp $ */
+/* $OpenBSD: init.c,v 1.54 2015/08/20 22:02:21 deraadt Exp $ */
/* $NetBSD: init.c,v 1.22 1996/05/15 23:29:33 jtc Exp $ */
/*-
@@ -834,8 +834,7 @@ char **
construct_argv(char *command)
{
int argc = 0;
- char **argv = (char **) calloc((strlen(command) + 1) / 2 + 1,
- sizeof (char *));
+ char **argv = calloc((strlen(command) + 1) / 2 + 1, sizeof (char *));
static const char separators[] = " \t";
if (argv == NULL)