diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-05-19 15:50:41 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-05-19 15:50:41 +0000 |
commit | b9804183841afd5381069796096a154edb5b9f53 (patch) | |
tree | 95e6f70d9ecd43e727d0defe1b02a818bc191169 /src/char_sql | |
parent | 3bd682b3cb3507c8a57fa6930475808981fd0663 (diff) | |
download | hercules-b9804183841afd5381069796096a154edb5b9f53.tar.gz hercules-b9804183841afd5381069796096a154edb5b9f53.tar.bz2 hercules-b9804183841afd5381069796096a154edb5b9f53.tar.xz hercules-b9804183841afd5381069796096a154edb5b9f53.zip |
Reformatting @_@
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10581 54d463be-8e91-2dee-dedb-b68131a5f0ec
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){ |