From 37cc17c1b9a2dd29e1623a46cfc332e1aeb76751 Mon Sep 17 00:00:00 2001 From: ultramage Date: Mon, 2 Apr 2007 13:46:11 +0000 Subject: * Some source code cleaning - Fixed the badly worded messages during mapserver startup - Cleaned up socket config reading - Split resolve_hostbyname() into 2 separate functions for clarity - Moved the probably obsolete LOWER/UPPER macros to db.c (TODO: remove) - Moved the badly placed compare_item() function to storage.c (see r779) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10119 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/login_sql/login.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/login_sql') diff --git a/src/login_sql/login.c b/src/login_sql/login.c index 0c4b77b61..24feeff8a 100644 --- a/src/login_sql/login.c +++ b/src/login_sql/login.c @@ -1899,10 +1899,10 @@ int login_config_read(const char* cfgName) msg_silent = atoi(w2); } else if (!strcmpi(w1, "bind_ip")) { - char login_ip_str[128]; - login_config.login_ip = resolve_hostbyname(w2, NULL, login_ip_str); + char ip_str[16]; + login_config.login_ip = host2ip(w2); if (login_config.login_ip) - ShowStatus("Login server binding IP address : %s -> %s\n", w2, login_ip_str); + ShowStatus("Login server binding IP address : %s -> %s\n", w2, ip2str(login_config.login_ip, ip_str)); } else if(!strcmpi(w1,"login_port")) { login_config.login_port = (unsigned short)atoi(w2); ShowStatus("set login_port : %s\n",w2); -- cgit v1.2.3-70-g09d2