From e27a9d5f173f7626c576dbb2cd4c2f373edc847b Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 2 Sep 2021 11:10:49 +0300 Subject: (1) Updated some formatting and naming --- src/defaultCommands.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/defaultCommands.c') diff --git a/src/defaultCommands.c b/src/defaultCommands.c index c5c927a..74415da 100644 --- a/src/defaultCommands.c +++ b/src/defaultCommands.c @@ -2,23 +2,23 @@ #include #include -void help(char *args) { +void help(char *p_args) { printf("This is the help message"); } -void about(char *args) { +void about(char *p_args) { printf("This is the about message"); } -void version(char *args) { +void version(char *p_args) { printf("This is the version message"); } -void exitApp(char *args) { - exit(0); +void exitApp(char *p_args) { + exit(EXIT_SUCCESS); } -extern void registerHandler(char *name, F_EXECUTOR executor); +extern void registerHandler(char *, P_EXECUTOR); void registerDefaultHandlers() { registerHandler("help", &help); -- cgit v1.2.3