aboutsummaryrefslogtreecommitdiff
path: root/src/defaultCommands.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/defaultCommands.c')
-rw-r--r--src/defaultCommands.c12
1 files changed, 6 insertions, 6 deletions
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 <stdio.h>
#include <stdlib.h>
-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);