aboutsummaryrefslogtreecommitdiffstats
path: root/extension/fork.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-06-12 22:10:31 +0300
committerArnold D. Robbins <arnold@skeeve.com>2012-06-12 22:10:31 +0300
commit820b6a2ccb7859e15ade36af6ac1d0d08c1da4b1 (patch)
treee820c47953f997e8d267854fd921417d61d8ec3a /extension/fork.c
parentb4a2d75b7d9fd23069a55dc91a42f7fddd0c7570 (diff)
downloadegawk-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.c4
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)