summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-20 18:56:31 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-20 18:56:31 +0000
commit42c6b6bafed8d3bb3e6d70beda4a5f1230a672d4 (patch)
tree73e18bda2b76c464b318f3254f8694097cea3ff0 /src
parent96ba60c480e0d8403bec2178f65a06efbcc5982c (diff)
downloadhercules-42c6b6bafed8d3bb3e6d70beda4a5f1230a672d4.tar.gz
hercules-42c6b6bafed8d3bb3e6d70beda4a5f1230a672d4.tar.bz2
hercules-42c6b6bafed8d3bb3e6d70beda4a5f1230a672d4.tar.xz
hercules-42c6b6bafed8d3bb3e6d70beda4a5f1230a672d4.zip
- Changed some %lu (long unsigned int) to %u (unsigned int)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9541 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/char_sql/int_homun.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/char_sql/int_homun.c b/src/char_sql/int_homun.c
index e726b15d3..7fd27550a 100644
--- a/src/char_sql/int_homun.c
+++ b/src/char_sql/int_homun.c
@@ -146,7 +146,7 @@ int mapif_load_homunculus(int fd){
RFIFOHEAD(fd);
memset(homun_pt, 0, sizeof(struct s_homunculus));
- sprintf(tmp_sql,"SELECT `homun_id`,`char_id`,`class`,`name`,`level`,`exp`,`intimacy`,`hunger`, `str`, `agi`, `vit`, `int`, `dex`, `luk`, `hp`,`max_hp`,`sp`,`max_sp`,`skill_point`,`rename_flag`, `vaporize` FROM `homunculus` WHERE `homun_id`='%lu'", RFIFOL(fd,6));
+ sprintf(tmp_sql,"SELECT `homun_id`,`char_id`,`class`,`name`,`level`,`exp`,`intimacy`,`hunger`, `str`, `agi`, `vit`, `int`, `dex`, `luk`, `hp`,`max_hp`,`sp`,`max_sp`,`skill_point`,`rename_flag`, `vaporize` FROM `homunculus` WHERE `homun_id`='%u'", RFIFOL(fd,6));
if(mysql_query(&mysql_handle, tmp_sql) ) {
ShowSQL("DB error - %s\n",mysql_error(&mysql_handle));
ShowDebug("at %s:%d - %s\n", __FILE__,__LINE__,tmp_sql);
@@ -219,7 +219,7 @@ int mapif_load_homunculus(int fd){
int mapif_delete_homunculus(int fd)
{
RFIFOHEAD(fd);
- sprintf(tmp_sql, "DELETE FROM `homunculus` WHERE `homun_id` = '%lu'", RFIFOL(fd,2));
+ sprintf(tmp_sql, "DELETE FROM `homunculus` WHERE `homun_id` = '%u'", RFIFOL(fd,2));
if(mysql_query(&mysql_handle, tmp_sql))
{
ShowSQL("DB error - %s\n",mysql_error(&mysql_handle));
@@ -227,7 +227,7 @@ int mapif_delete_homunculus(int fd)
return mapif_homunculus_deleted(fd, 0);
}
- sprintf(tmp_sql, "DELETE FROM `skill_homunculus` WHERE `homun_id` = '%lu'", RFIFOL(fd,2));
+ sprintf(tmp_sql, "DELETE FROM `skill_homunculus` WHERE `homun_id` = '%u'", RFIFOL(fd,2));
if(mysql_query(&mysql_handle, tmp_sql))
{
ShowSQL("DB error - %s\n",mysql_error(&mysql_handle));