aboutsummaryrefslogtreecommitdiff
path: root/smash
diff options
context:
space:
mode:
Diffstat (limited to 'smash')
-rw-r--r--smash/exec.c4
-rw-r--r--smash/exec.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/smash/exec.c b/smash/exec.c
index 8c20126..603f93d 100644
--- a/smash/exec.c
+++ b/smash/exec.c
@@ -63,7 +63,7 @@ void execute_line(char *line)
close(pipefd[1][PIPE_OUT]);
close(pipefd[1][PIPE_IN]);
- exec((const char **)argv);
+ exec((const char**)argv);
wff(STDERR_FD, "command not found: %s\n", argv[0]);
exit(-1);
}
@@ -85,7 +85,7 @@ void execute_line(char *line)
list_node_t *node = pids->first;
for (; node; node = node->next) {
- wait4((int)node->value, 0, 0);
+ wait4((int)node->value, 0, 0, 0);
}
free_expression(exps);
diff --git a/smash/exec.h b/smash/exec.h
index 83f826f..fdd8423 100644
--- a/smash/exec.h
+++ b/smash/exec.h
@@ -1,5 +1,5 @@
-#ifndef EXEC_H
-#define EXEC_H
+#ifndef EXECUTE_LINE_H
+#define EXECUTE_LINE_H
void execute_line(char *line);