diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-02-15 15:07:56 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-02-15 15:07:56 +0100 |
| commit | 1645da679ce50b13b6f19a062eabd2d869762a07 (patch) | |
| tree | 37e19f84000df69bb2a7d88a2f3db800ead6a85a /smash | |
| parent | 3a369468f7daae5b3a60feaa50c6050b240be6d4 (diff) | |
add framebuffer image support
Diffstat (limited to 'smash')
| -rw-r--r-- | smash/exec.c | 4 | ||||
| -rw-r--r-- | smash/exec.h | 4 |
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); |