- 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://svn.code.sf.net/p/rathena/svn/trunk@5298 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
@@ -180,7 +180,7 @@ int inter_accreg_fromsql(int account_id,int char_id, struct accreg *reg, int typ
|
||||
}
|
||||
|
||||
// Initialize
|
||||
int inter_accreg_sql_init()
|
||||
int inter_accreg_sql_init(void)
|
||||
{
|
||||
CREATE(accreg_pt, struct accreg, 1);
|
||||
return 0;
|
||||
@@ -397,7 +397,7 @@ int inter_sql_test (void)
|
||||
}
|
||||
|
||||
// finalize
|
||||
void inter_final() {
|
||||
void inter_final(void) {
|
||||
wis_db->destroy(wis_db, NULL);
|
||||
|
||||
inter_guild_sql_final();
|
||||
@@ -552,7 +552,7 @@ int check_ttl_wisdata_sub(DBKey key, void *data, va_list ap) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int check_ttl_wisdata() {
|
||||
int check_ttl_wisdata(void) {
|
||||
unsigned long tick = gettick();
|
||||
int i;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user