aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustav HÃ¥llberg <gustav@gmail.com>2008-12-29 19:35:30 (GMT)
committerGustav HÃ¥llberg <gustav@gmail.com>2009-01-16 23:34:19 (GMT)
commitba902ad54b651134a1261c9f4be227a462c54f3b (patch)
tree4f66e873d47822a3a0cffc4c4f82ab0eb0b461a9
parent903c1298720b7379b7e77b9b2411ba2ab8aa79fa (diff)
downloadpowwow-ba902ad54b651134a1261c9f4be227a462c54f3b.zip
powwow-ba902ad54b651134a1261c9f4be227a462c54f3b.tar.gz
powwow-ba902ad54b651134a1261c9f4be227a462c54f3b.tar.bz2
renamed _cmd_init() to initialize_cmd() and added a function prototype for it
-rw-r--r--cmd.c2
-rw-r--r--cmd.h2
-rw-r--r--main.c2
3 files changed, 4 insertions, 2 deletions
diff --git a/cmd.c b/cmd.c
index 6c3ef73..15a63d6 100644
--- a/cmd.c
+++ b/cmd.c
@@ -222,7 +222,7 @@ void cmd_add_command( cmdstruct *cmd ) {
}
/* Init the command listing, called from main */
-void _cmd_init() {
+void initialize_cmd(void) {
int i;
/* Now add the default command list */
diff --git a/cmd.h b/cmd.h
index c19f45f..f8186a5 100644
--- a/cmd.h
+++ b/cmd.h
@@ -17,5 +17,7 @@ void show_stat __P ((void));
void cmd_add_command( cmdstruct *cmd );
+void initialize_cmd(void);
+
#endif /* _CMD_H_ */
diff --git a/main.c b/main.c
index 4e392e9..4904033 100644
--- a/main.c
+++ b/main.c
@@ -263,7 +263,7 @@ int main __P2 (int,argc, char **,argv)
init_random((int)now.tv_sec);
#endif
- _cmd_init();
+ initialize_cmd();
if ((p = getenv("POWWOWDIR"))) {
strcpy(powwow_dir, p);