summaryrefslogtreecommitdiff
path: root/src/char_sql
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-09-20 17:10:53 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-09-20 17:10:53 +0000
commite39697a8dd79ff05538761ebe60ae4e0efa44bd4 (patch)
tree9d811de3db55a9aa1d2dfb85766a43e387687198 /src/char_sql
parentd0e2bdc12e685eb0166d4aa55eee6fe2f79c1b73 (diff)
downloadhercules-e39697a8dd79ff05538761ebe60ae4e0efa44bd4.tar.gz
hercules-e39697a8dd79ff05538761ebe60ae4e0efa44bd4.tar.bz2
hercules-e39697a8dd79ff05538761ebe60ae4e0efa44bd4.tar.xz
hercules-e39697a8dd79ff05538761ebe60ae4e0efa44bd4.zip
Added back SQL charserver listening socket code that got removed in the /tmpsql merge.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11251 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql')
-rw-r--r--src/char_sql/char.c4
-rw-r--r--src/char_sql/int_storage.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index e2baa3b9e..e13744754 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -3930,7 +3930,11 @@ int do_init(int argc, char **argv)
Sql_ShowDebug(sql_handle);
ShowInfo("End of char server initilization function.\n");
+
+ ShowInfo("open port %d.....\n",char_port);
+ char_fd = make_listen_bind(bind_ip, char_port);
ShowStatus("The char-server is "CL_GREEN"ready"CL_RESET" (Server is listening on the port %d).\n\n", char_port);
+
return 0;
}
diff --git a/src/char_sql/int_storage.c b/src/char_sql/int_storage.c
index b13f37200..fc8d9f8f3 100644
--- a/src/char_sql/int_storage.c
+++ b/src/char_sql/int_storage.c
@@ -24,7 +24,7 @@ struct guild_storage *guild_storage_pt=NULL;
#endif //TXT_SQL_CONVERT
/// Save guild_storage data to sql
-int storage_tosql(int account_id,struct storage* p)
+int storage_tosql(int account_id, struct storage* p)
{
memitemdata_to_sql(p->storage_, MAX_STORAGE, account_id, TABLE_STORAGE);
//ShowInfo ("storage save to DB - account: %d\n", account_id);