diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-04-16 20:44:44 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-04-16 20:44:44 +0000 |
commit | 9f47d257ba5bb985bc6753b0f20b90da18664cd1 (patch) | |
tree | 6c3c5c0157298810886561bcadca78bbe86193db /src/char/char.c | |
parent | cf0a0b7d27a81f572c96e4a79c7ea0c407fe9626 (diff) | |
download | hercules-9f47d257ba5bb985bc6753b0f20b90da18664cd1.tar.gz hercules-9f47d257ba5bb985bc6753b0f20b90da18664cd1.tar.bz2 hercules-9f47d257ba5bb985bc6753b0f20b90da18664cd1.tar.xz hercules-9f47d257ba5bb985bc6753b0f20b90da18664cd1.zip |
* Finally fixed mingw problems, managed to build both TXT and SQL
* Fixed the uint32 platform problem (Microsoft failed so I removed it :)
* Removed the cbasetypes.h dependency from the mapcache generator
* Removed some random compilation warnings
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10270 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char/char.c')
-rw-r--r-- | src/char/char.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/char/char.c b/src/char/char.c index 0d888f399..5b9b5d87b 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -1127,7 +1127,7 @@ int make_new_char(int fd, unsigned char *dat) { return -1; } - if (remove_control_chars((unsigned char *)name)) { + if (remove_control_chars(name)) { char_log("Make new char error (control char received in the name): (connection #%d, account: %d)." RETCODE, fd, sd->account_id); return -1; @@ -2182,7 +2182,7 @@ int parse_tologin(int fd) { memset(message, '\0', sizeof(message)); memcpy(message, RFIFOP(fd,8), RFIFOL(fd,4)); message[sizeof(message)-1] = '\0'; - remove_control_chars((unsigned char *)message); + remove_control_chars(message); // remove all first spaces p = message; while(p[0] == ' ') @@ -3970,10 +3970,10 @@ int char_lan_config_read(const char *lancfgName) { continue; } - remove_control_chars((unsigned char *)w1); - remove_control_chars((unsigned char *)w2); - remove_control_chars((unsigned char *)w3); - remove_control_chars((unsigned char *)w4); + remove_control_chars(w1); + remove_control_chars(w2); + remove_control_chars(w3); + remove_control_chars(w4); if(strcmpi(w1, "subnet") == 0) { @@ -4015,8 +4015,8 @@ int char_config_read(const char *cfgName) { if (sscanf(line, "%[^:]: %[^\r\n]", w1, w2) != 2) continue; - remove_control_chars((unsigned char *)w1); - remove_control_chars((unsigned char *)w2); + remove_control_chars(w1); + remove_control_chars(w2); if(strcmpi(w1,"timestamp_format") == 0) { strncpy(timestamp_format, w2, 20); } else if(strcmpi(w1,"console_silent")==0){ |