summaryrefslogtreecommitdiff
path: root/src/char/int_homun.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-02-19 21:37:39 +0100
committerHaru <haru@dotalux.com>2016-03-20 18:32:07 +0100
commitf4fced20c769ccee7f808531221dda481f7bbcca (patch)
tree4bbdd3509a3d6f682e89279f8df2abb1e259a198 /src/char/int_homun.c
parent8c9e9668cef87ab9595bde6608de424072cc752d (diff)
downloadhercules-f4fced20c769ccee7f808531221dda481f7bbcca.tar.gz
hercules-f4fced20c769ccee7f808531221dda481f7bbcca.tar.bz2
hercules-f4fced20c769ccee7f808531221dda481f7bbcca.tar.xz
hercules-f4fced20c769ccee7f808531221dda481f7bbcca.zip
Removed unnecessary typedefs from sql.h
- Sql -> struct Sql - SqlStmt -> struct SqlStmt - SqlDataType -> enum SqlDataType This is expected to improve compile time, by removing #include cycles (and forward declaring instead) Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/char/int_homun.c')
-rw-r--r--src/char/int_homun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char/int_homun.c b/src/char/int_homun.c
index e5fde2330..bfb0009e6 100644
--- a/src/char/int_homun.c
+++ b/src/char/int_homun.c
@@ -163,7 +163,7 @@ bool mapif_homunculus_save(const struct s_homunculus *hd)
flag = false;
} else {
int i;
- SqlStmt *stmt = SQL->StmtMalloc(inter->sql_handle);
+ struct SqlStmt *stmt = SQL->StmtMalloc(inter->sql_handle);
if (SQL_ERROR == SQL->StmtPrepare(stmt, "REPLACE INTO `%s` (`homun_id`, `id`, `lv`) VALUES (%d, ?, ?)", skill_homunculus_db, hd->hom_id)) {
SqlStmt_ShowDebug(stmt);