From 791b3307964a57345bdf45cb2d4d7c51881b66ff Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 16 Feb 2006 20:15:21 +0000 Subject: - Updated the login/char sql servers to let the sql tables autogenerate the new id, and then retrieve said id using mysql_insert_id rather than playing smart and loading the next insert ID on startup. - Tables affected are: account creation, char creation, party creation, pet creation and guild creation. - Also corrected some functions to be of type (void) rather than () git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5298 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/char_sql/int_storage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/char_sql/int_storage.c') diff --git a/src/char_sql/int_storage.c b/src/char_sql/int_storage.c index 1dac9dc51..780617055 100644 --- a/src/char_sql/int_storage.c +++ b/src/char_sql/int_storage.c @@ -176,7 +176,7 @@ int guild_storage_fromsql(int guild_id, struct guild_storage *p){ //--------------------------------------------------------- // storage data initialize -int inter_storage_sql_init(){ +int inter_storage_sql_init(void){ //memory alloc ShowDebug("interserver storage memory initialize....(%d byte)\n",sizeof(struct storage)); @@ -188,7 +188,7 @@ int inter_storage_sql_init(){ return 1; } // storage data finalize -void inter_storage_sql_final() +void inter_storage_sql_final(void) { if (storage_pt) aFree(storage_pt); if (guild_storage_pt) aFree(guild_storage_pt); -- cgit v1.2.3-70-g09d2