diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2012-06-12 22:10:31 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2012-06-12 22:10:31 +0300 |
commit | 820b6a2ccb7859e15ade36af6ac1d0d08c1da4b1 (patch) | |
tree | e820c47953f997e8d267854fd921417d61d8ec3a /extension/fork.c | |
parent | b4a2d75b7d9fd23069a55dc91a42f7fddd0c7570 (diff) | |
download | egawk-820b6a2ccb7859e15ade36af6ac1d0d08c1da4b1.tar.gz egawk-820b6a2ccb7859e15ade36af6ac1d0d08c1da4b1.tar.bz2 egawk-820b6a2ccb7859e15ade36af6ac1d0d08c1da4b1.zip |
Further cleanups and improvements in API.
Diffstat (limited to 'extension/fork.c')
-rw-r--r-- | extension/fork.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extension/fork.c b/extension/fork.c index 1d4ad82c..0c2e31d0 100644 --- a/extension/fork.c +++ b/extension/fork.c @@ -78,7 +78,7 @@ do_fork(int nargs, awk_value_t *result) /* update PROCINFO in the child, if the array exists */ awk_value_t procinfo; - if (sym_lookup("PROCINFO", & procinfo, AWK_ARRAY) != NULL) { + if (sym_lookup("PROCINFO", AWK_ARRAY, & procinfo)) { if (procinfo.val_type != AWK_ARRAY) { if (do_lint) lintwarn(ext_id, "fork: PROCINFO is not an array!"); @@ -105,7 +105,7 @@ do_waitpid(int nargs, awk_value_t *result) if (do_lint && nargs > 1) lintwarn(ext_id, "waitpid: called with too many arguments"); - if (get_curfunc_param(0, AWK_NUMBER, &pid) != NULL) { + if (get_argument(0, AWK_NUMBER, &pid)) { options = WNOHANG|WUNTRACED; ret = waitpid(pid.num_value, NULL, options); if (ret < 0) |