diff options
Diffstat (limited to 'src/char_sql')
-rw-r--r-- | src/char_sql/int_party.c | 3 | ||||
-rw-r--r-- | src/char_sql/inter.c | 6 | ||||
-rw-r--r-- | src/char_sql/itemdb.c | 15 |
3 files changed, 10 insertions, 14 deletions
diff --git a/src/char_sql/int_party.c b/src/char_sql/int_party.c index 01b960cd2..dbb431cfd 100644 --- a/src/char_sql/int_party.c +++ b/src/char_sql/int_party.c @@ -300,7 +300,8 @@ struct party_data *inter_party_fromsql(int party_id) return p; } -int inter_party_sql_init(void){ +int inter_party_sql_init(void) +{ //memory alloc party_db_ = db_alloc(__FILE__,__LINE__,DB_INT,DB_OPT_RELEASE_DATA,sizeof(int)); party_pt = (struct party_data*)aCalloc(sizeof(struct party_data), 1); diff --git a/src/char_sql/inter.c b/src/char_sql/inter.c index 3d922b85a..0702ed3e7 100644 --- a/src/char_sql/inter.c +++ b/src/char_sql/inter.c @@ -189,9 +189,9 @@ int inter_accreg_sql_init(void) /*========================================== * read config file - *------------------------------------------ - */ -static int inter_config_read(const char *cfgName) { + *------------------------------------------*/ +static int inter_config_read(const char *cfgName) +{ int i; char line[1024], w1[1024], w2[1024]; FILE *fp; diff --git a/src/char_sql/itemdb.c b/src/char_sql/itemdb.c index 5feea2492..a5c2aa8f0 100644 --- a/src/char_sql/itemdb.c +++ b/src/char_sql/itemdb.c @@ -34,8 +34,7 @@ static void* create_item(DBKey key, va_list args) { } /*========================================== * DBの検索 - *------------------------------------------ - */ + *------------------------------------------*/ struct item_data* itemdb_search(int nameid) { return idb_ensure(item_db,nameid,create_item); @@ -43,8 +42,7 @@ struct item_data* itemdb_search(int nameid) /*========================================== * - *------------------------------------------ - */ + *------------------------------------------*/ int itemdb_isequip(int nameid) { int type=itemdb_type(nameid); @@ -54,8 +52,7 @@ int itemdb_isequip(int nameid) } /*========================================== * - *------------------------------------------ - */ + *------------------------------------------*/ int itemdb_isequip2(struct item_data *data) { if(data) { @@ -72,8 +69,7 @@ int itemdb_isequip2(struct item_data *data) /*========================================== * アイテムデータベースの読み込み - *------------------------------------------ - */ + *------------------------------------------*/ static int itemdb_readdb(void) { FILE *fp; @@ -202,8 +198,7 @@ static int itemdb_read_sqldb(void) // sql item_db read, shortened version of map /*========================================== * - *------------------------------------------ - */ + *------------------------------------------*/ void do_final_itemdb(void) { if(item_db){ |