diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-04-09 00:46:55 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-04-09 00:46:55 +0000 |
commit | cc716ca00420c23bdb02831f8fc205d4588e1f75 (patch) | |
tree | b7f3182f6e59f705eff9ee14ad35075fa52acf80 /src/char_sql | |
parent | 4ae1b3c2a335d95a5425ecf5c19c5be2ab21e13a (diff) | |
download | hercules-cc716ca00420c23bdb02831f8fc205d4588e1f75.tar.gz hercules-cc716ca00420c23bdb02831f8fc205d4588e1f75.tar.bz2 hercules-cc716ca00420c23bdb02831f8fc205d4588e1f75.tar.xz hercules-cc716ca00420c23bdb02831f8fc205d4588e1f75.zip |
* Played around with MinGW a bit today...
- adjusted code so that it handles mingw-specific compatibility problems
- adjusted the makefile, mingw is not a subset of cygwin
* As an experiment Corrected many /W4 warnings on the txt login server
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10192 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql')
-rw-r--r-- | src/char_sql/Makefile | 2 | ||||
-rw-r--r-- | src/char_sql/int_homun.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/char_sql/Makefile b/src/char_sql/Makefile index 4d6772838..1b8a742f0 100644 --- a/src/char_sql/Makefile +++ b/src/char_sql/Makefile @@ -14,7 +14,7 @@ char-server_sql: char.o inter.o int_party.o int_guild.o int_storage.o int_pet.o $(CC) -o ../../$@ $^ $(LIB_S) clean: - rm -f *.o ../../char-server_sql + rm -f *.o ../../char-server_sql GNUmakefile # DO NOT DELETE diff --git a/src/char_sql/int_homun.c b/src/char_sql/int_homun.c index 2260ddf20..049530607 100644 --- a/src/char_sql/int_homun.c +++ b/src/char_sql/int_homun.c @@ -145,7 +145,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`='%u'", 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`='%lu'", 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); |