diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2011-04-03 21:37:59 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2011-04-03 21:37:59 -0700 |
commit | 721265e0fe2bd38bafd3a09a0e574e10c89bd345 (patch) | |
tree | 1aa6ff398094c81d490b7284e4cb9c8e0fde7e93 /src/ladmin/ladmin.c | |
parent | 4095d5726ebabc663a6d5397d003773ee652818a (diff) | |
download | tmwa-721265e0fe2bd38bafd3a09a0e574e10c89bd345.tar.gz tmwa-721265e0fe2bd38bafd3a09a0e574e10c89bd345.tar.bz2 tmwa-721265e0fe2bd38bafd3a09a0e574e10c89bd345.tar.xz tmwa-721265e0fe2bd38bafd3a09a0e574e10c89bd345.zip |
Fix some more compiler warnings
Diffstat (limited to 'src/ladmin/ladmin.c')
-rw-r--r-- | src/ladmin/ladmin.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ladmin/ladmin.c b/src/ladmin/ladmin.c index 49f52ca..ebe5a75 100644 --- a/src/ladmin/ladmin.c +++ b/src/ladmin/ladmin.c @@ -255,7 +255,7 @@ int already_exit_function = 0; // sometimes, the exit function is called twice. //------------------------------ // Writing function of logs file //------------------------------ -int ladmin_log (char *fmt, ...) +int ladmin_log (const char *fmt, ...) { FILE *logfp; va_list ap; @@ -307,7 +307,7 @@ int remove_control_chars (unsigned char *str) //--------------------------------------------- // Function to return ordonal text of a number. //--------------------------------------------- -char *makeordinal (int number) +const char *makeordinal (int number) { if (defaultlanguage == 'F') { @@ -2784,7 +2784,7 @@ int changeemail (char *param) //----------------------------------------------------- // Sub-function: Asking of the number of online players //----------------------------------------------------- -int getlogincount () +int getlogincount (void) { if (defaultlanguage == 'F') { @@ -3399,7 +3399,7 @@ int changepasswd (char *param) // Sub-function: Request to login-server to reload GM configuration file // this function have no answer //---------------------------------------------------------------------- -int reloadGM () +int reloadGM (void) { WFIFOW (login_fd, 0) = 0x7955; WFIFOSET (login_fd, 2); @@ -4387,7 +4387,7 @@ int whoaccount (char *param) //-------------------------------------------------------- // Sub-function: Asking of the version of the login-server //-------------------------------------------------------- -int checkloginversion () +int checkloginversion (void) { if (defaultlanguage == 'F') ladmin_log @@ -4408,7 +4408,7 @@ int checkloginversion () // this function wait until user type a command // and analyse the command. //--------------------------------------------- -int prompt () +int prompt (void) { int i, j; char buf[1024]; @@ -4767,7 +4767,7 @@ void parse_fromlogin (int fd) } // printf("parse_fromlogin : %d %d %d\n", fd, RFIFOREST(fd), RFIFOW(fd,0)); - sd = session[fd]->session_data; + sd = (struct char_session_data *)session[fd]->session_data; while (RFIFOREST (fd) >= 2) { @@ -6339,7 +6339,7 @@ void parse_fromlogin (int fd) //------------------------------------ // Function to connect to login-server //------------------------------------ -int Connect_login_server () +int Connect_login_server (void) { if (defaultlanguage == 'F') { |