From e0ec3f0a536fabe0c8c47dd64da77855c0824adc Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Sat, 17 Dec 2022 17:38:03 +0100 Subject: resolve Warnings --- smash/Makefile | 2 +- smash/exec.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'smash') 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); } -- cgit v1.2.3-70-g09d2