From 37ba7cf3d283d45443ca8673e58c0d3cb989c42d Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 10 Jul 2006 20:03:18 +0000 Subject: - Fixed SQL compilation of the char-SQL server... (I need SQL installed at work ~.~) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7602 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/char_sql/char.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/char_sql/char.c b/src/char_sql/char.c index a6e707f2e..c5d248f71 100644 --- a/src/char_sql/char.c +++ b/src/char_sql/char.c @@ -337,6 +337,7 @@ void set_all_offline_sql(void) { if(mysql_query(&mysql_handle, tmp_sql)){ ShowSQL("DB error - %s\n",mysql_error(&mysql_handle)); ShowDebug("at %s:%d - %s\n", __FILE__,__LINE__,tmp_sql); + } } //---------------------------------------------------------------------- @@ -3767,10 +3768,6 @@ int send_accounts_tologin(int tid, unsigned int tick, int id, int data) { } int check_connect_login_server(int tid, unsigned int tick, int id, int data) { - struct char_session_data *sd; - int i, cc; - unsigned char buf[16]; - if (login_fd > 0 || session[login_fd] != NULL) return 0; @@ -4047,7 +4044,7 @@ int char_config_read(const char *cfgName) { } else if (strcmpi(w1, "passwd") == 0) { strncpy(passwd, w2, 24); } else if (strcmpi(w1, "server_name") == 0) { - strncpy(server_name, w2, 20) + strncpy(server_name, w2, 20); server_name[sizeof(server_name) - 1] = '\0'; ShowStatus("%s server has been initialized\n", w2); } else if (strcmpi(w1, "wisp_server_name") == 0) { -- cgit v1.2.3-70-g09d2