diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-18 21:59:20 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-18 21:59:20 +0000 |
commit | f26dbc30528f8627310fa03f46cefd940ee40588 (patch) | |
tree | ed89bb354699d2a5fb34b3b7022f37bc2b68b375 /src/login_sql | |
parent | 2bc59ef9db7a86d0c483e3848ead57d6d691e6a3 (diff) | |
download | hercules-f26dbc30528f8627310fa03f46cefd940ee40588.tar.gz hercules-f26dbc30528f8627310fa03f46cefd940ee40588.tar.bz2 hercules-f26dbc30528f8627310fa03f46cefd940ee40588.tar.xz hercules-f26dbc30528f8627310fa03f46cefd940ee40588.zip |
Fixed some gcc-specific stuff, silenced some more warnings
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11515 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/login_sql')
-rw-r--r-- | src/login_sql/login.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/login_sql/login.c b/src/login_sql/login.c index d40cfcdf5..b45ec0119 100644 --- a/src/login_sql/login.c +++ b/src/login_sql/login.c @@ -32,7 +32,7 @@ struct Login_Config { bool case_sensitive; // are logins case sensitive ? bool use_md5_passwds; // work with password hashes instead of plaintext passwords? bool login_gm_read; // should the login server handle info about gm accounts? - uint8 min_level_to_connect; // minimum level of player/GM (0: player, 1-99: GM) to connect + int min_level_to_connect; // minimum level of player/GM (0: player, 1-99: GM) to connect bool online_check; // reject incoming players that are already registered as online ? bool check_client_version; // check the clientversion set in the clientinfo ? unsigned int client_version_to_connect; // the client version needed to connect (if checking is enabled) @@ -1774,7 +1774,7 @@ int login_config_read(const char* cfgName) else if(!strcmpi(w1, "use_MD5_passwords")) login_config.use_md5_passwds = (bool)config_switch(w2); else if(!strcmpi(w1, "min_level_to_connect")) - login_config.min_level_to_connect = (uint8)atoi(w2); + login_config.min_level_to_connect = atoi(w2); else if(!strcmpi(w1, "date_format")) safestrncpy(login_config.date_format, w2, sizeof(login_config.date_format)); else if(!strcmpi(w1, "console")) |