summaryrefslogtreecommitdiff
path: root/src/char/char.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-02-19 21:40:53 +0100
committerHaru <haru@dotalux.com>2016-03-20 18:32:07 +0100
commit127093b5327de343f4ae3f7c8752c465eea911c8 (patch)
treeaad51f53ba9bb8b99aa55a902ab1353a1937b403 /src/char/char.c
parentf4fced20c769ccee7f808531221dda481f7bbcca (diff)
downloadhercules-127093b5327de343f4ae3f7c8752c465eea911c8.tar.gz
hercules-127093b5327de343f4ae3f7c8752c465eea911c8.tar.bz2
hercules-127093b5327de343f4ae3f7c8752c465eea911c8.tar.xz
hercules-127093b5327de343f4ae3f7c8752c465eea911c8.zip
Changed buffer argument of SQL->StmtBindParam() to const
Parameters are supposed to be read-only Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/char/char.c')
-rw-r--r--src/char/char.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 23f5d1ea0..df59eafc9 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -3298,8 +3298,8 @@ void char_ban(int account_id, int char_id, time_t *unban_time, short year, short
if( SQL_SUCCESS != SQL->StmtPrepare(stmt,
"UPDATE `%s` SET `unban_time` = ? WHERE `char_id` = ? LIMIT 1",
char_db)
- || SQL_SUCCESS != SQL->StmtBindParam(stmt, 0, SQLDT_LONG, (void*)&timestamp, sizeof(timestamp))
- || SQL_SUCCESS != SQL->StmtBindParam(stmt, 1, SQLDT_INT, (void*)&char_id, sizeof(char_id))
+ || SQL_SUCCESS != SQL->StmtBindParam(stmt, 0, SQLDT_LONG, &timestamp, sizeof(timestamp))
+ || SQL_SUCCESS != SQL->StmtBindParam(stmt, 1, SQLDT_INT, &char_id, sizeof(char_id))
|| SQL_SUCCESS != SQL->StmtExecute(stmt)
) {
SqlStmt_ShowDebug(stmt);