diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-10 20:03:18 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-10 20:03:18 +0000 |
commit | 37ba7cf3d283d45443ca8673e58c0d3cb989c42d (patch) | |
tree | 8c7a36382285a5796a76a42ae11c3fe47d1c773e /src/char_sql/char.c | |
parent | e50e157f6c854dcfde2765b9b5e7bf10a2200476 (diff) | |
download | hercules-37ba7cf3d283d45443ca8673e58c0d3cb989c42d.tar.gz hercules-37ba7cf3d283d45443ca8673e58c0d3cb989c42d.tar.bz2 hercules-37ba7cf3d283d45443ca8673e58c0d3cb989c42d.tar.xz hercules-37ba7cf3d283d45443ca8673e58c0d3cb989c42d.zip |
- 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
Diffstat (limited to 'src/char_sql/char.c')
-rw-r--r-- | src/char_sql/char.c | 7 |
1 files 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) {
|