diff options
author | 2007-10-29 14:12:19 +0000 | |
---|---|---|
committer | 2007-10-29 14:12:19 +0000 | |
commit | a8f078fd644ee998106abafc1a61dc841e972bd2 (patch) | |
tree | 99c7b337e04785fb403c3fb78a87afc9917cf946 /sys/kern/exec_script.c | |
parent | regen (diff) | |
download | wireguard-openbsd-a8f078fd644ee998106abafc1a61dc841e972bd2.tar.xz wireguard-openbsd-a8f078fd644ee998106abafc1a61dc841e972bd2.zip |
MALLOC/FREE -> malloc/free
replace an hard coded value with M_WAITOK
ok krw@
Diffstat (limited to 'sys/kern/exec_script.c')
-rw-r--r-- | sys/kern/exec_script.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/exec_script.c b/sys/kern/exec_script.c index 791fc3f5ab9..b48dd20f337 100644 --- a/sys/kern/exec_script.c +++ b/sys/kern/exec_script.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_script.c,v 1.24 2006/11/14 18:00:27 jmc Exp $ */ +/* $OpenBSD: exec_script.c,v 1.25 2007/10/29 14:12:19 chl Exp $ */ /* $NetBSD: exec_script.c,v 1.13 1996/02/04 02:15:06 christos Exp $ */ /* @@ -205,7 +205,7 @@ check_shell: epp->ep_flags |= EXEC_INDIR; /* and set up the fake args list, for later */ - MALLOC(shellargp, char **, 4 * sizeof(char *), M_EXEC, M_WAITOK); + shellargp = malloc(4 * sizeof(char *), M_EXEC, M_WAITOK); tmpsap = shellargp; *tmpsap = malloc(shellnamelen + 1, M_EXEC, M_WAITOK); strlcpy(*tmpsap++, shellname, shellnamelen + 1); @@ -309,7 +309,7 @@ fail: free(*tmpsap, M_EXEC); tmpsap++; } - FREE(shellargp, M_EXEC); + free(shellargp, M_EXEC); } /* |