diff --git a/src/bin/shell/error.c b/src/bin/shell/error.c index 7b97f1b..adf30a6 100644 --- a/src/bin/shell/error.c +++ b/src/bin/shell/error.c @@ -24,7 +24,7 @@ #include #include -void error(int errorCode,char *errorMsg) { +void error(int errorCode,const char *errorMsg) { printf("ERROR: #%i Message: %s\n", errorCode, errorMsg); exit(errorCode); } diff --git a/src/bin/shell/shell.h b/src/bin/shell/shell.h index eba0d30..4d0f59f 100644 --- a/src/bin/shell/shell.h +++ b/src/bin/shell/shell.h @@ -18,3 +18,4 @@ int commands(inputBuffer *); void execProgram(inputBuffer *); void freeArgs(inputBuffer *ptr); +void error(int errorCode,const char *errorMsg);