diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-04-01 21:30:34 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-04-01 21:30:34 +0000 |
commit | 65eba8d2dc9adb9d977ee9cb47241fbc9832a4fc (patch) | |
tree | 6a1659c79e39ba3bcfee1398357e279abf705a5c /sys/kern | |
parent | a424445f049e11d1da3ea8254456bd421055984c (diff) |
Add a macro to initialize the contents of a vmcmd set.
Correctly initialize the vmcmds in linux_exec.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_exec.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 3344e664d33..0b44d27d700 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_exec.c,v 1.47 2001/02/22 16:08:01 art Exp $ */ +/* $OpenBSD: kern_exec.c,v 1.48 2001/04/01 21:30:33 art Exp $ */ /* $NetBSD: kern_exec.c,v 1.75 1996/02/09 18:59:28 christos Exp $ */ /*- @@ -269,9 +269,7 @@ sys_execve(p, v, retval) pack.ep_hdrvalid = 0; pack.ep_ndp = &nid; pack.ep_emul_arg = NULL; - pack.ep_vmcmds.evs_cnt = EXEC_DEFAULT_VMCMD_SETSIZE; - pack.ep_vmcmds.evs_cmds = pack.ep_vmcmds.evs_start; - pack.ep_vmcmds.evs_used = 0; + VMCMDSET_INIT(&pack.ep_vmcmds); pack.ep_vap = &attr; pack.ep_emul = &emul_native; pack.ep_flags = 0; |