aboutsummaryrefslogtreecommitdiff
path: root/src/command.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/command.h')
-rw-r--r--src/command.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/command.h b/src/command.h
index 9aeb07e..aeb4287 100644
--- a/src/command.h
+++ b/src/command.h
@@ -5,7 +5,7 @@
#include "common.h"
#define COMMAND(GROUP, COMMAND)\
-int GROUP##_##COMMAND(int argc, char** argv)
+int GROUP##_##COMMAND(UNUSED int argc, UNUSED char** argv)
#define COMMAND_HELP(GROUP, MSG) \
@@ -24,9 +24,9 @@ int GROUP##_##COMMAND(int argc, char** argv)
COMMAND_GROUP(GROUP) \
{ \
if (argc > 1) \
- for (int i = 0; i < ARRAY_LEN(GROUP##_commands); ++i) \
+ for (unsigned long i = 0; i < ARRAY_LEN(GROUP##_commands); ++i) \
if (!strcmp(GROUP##_commands[i].name, argv[1])) return GROUP##_commands[i].func(argc-1, argv+1); \
return GROUP##_help(argc-1, argv+1); \
}
-#endif \ No newline at end of file
+#endif