diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2022-12-17 17:38:03 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2022-12-17 17:38:03 +0100 |
| commit | e0ec3f0a536fabe0c8c47dd64da77855c0824adc (patch) | |
| tree | a009465731576dd8d0509f8c2f0c7023d1ddfbb7 /smash | |
| parent | 0e0f22cde8fa9a8c9e0ff509a90727092e0af58b (diff) | |
resolve Warnings
Diffstat (limited to 'smash')
| -rw-r--r-- | smash/Makefile | 2 | ||||
| -rw-r--r-- | smash/exec.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/smash/Makefile b/smash/Makefile index 0f62c63..9612edf 100644 --- a/smash/Makefile +++ b/smash/Makefile @@ -17,4 +17,4 @@ unit_test_exec: ./test all: - gcc main.c exec.c parser.c builtin.c ../lib/env/env.c ../lib/io/io.c ../lib/avl_tree/avl_tree.c ../lib/cstr/cstr.c ../lib/malloc/malloc.c ../lib/sys/start.S -static -nostdlib -fno-stack-protector -Wno-implicit-function-declaration -o smash -DVARIABLES_UNIT_TEST -g + gcc main.c exec.c parser.c builtin.c ../lib/env/env.c ../lib/io/io.c ../lib/avl_tree/avl_tree.c ../lib/cstr/cstr.c ../lib/malloc/malloc.c ../lib/sys/start.S -static -nostdlib -fno-stack-protector -Wno-implicit-function-declaration -fno-builtin -o smash -DVARIABLES_UNIT_TEST -g diff --git a/smash/exec.c b/smash/exec.c index 11620a5..79c8414 100644 --- a/smash/exec.c +++ b/smash/exec.c @@ -91,7 +91,7 @@ void exec(char *line) close(pipefd[1][PIPE_OUT]); close(pipefd[1][PIPE_IN]); - __execenv(argv); + __execenv((const char **)argv); wstdf("command not found: %s\n", argv[0]); exit(-1); } |