diff options
author | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-23 15:35:02 +0000 |
---|---|---|
committer | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-23 15:35:02 +0000 |
commit | a8cc76410626fbd0cb88e8a0dcde2a95a12230c8 (patch) | |
tree | 817f6db725d21c207cdae413a260d7bac3fac199 /src/char_sql | |
parent | af8a025d012d8beaef86448c0656a9f16228982a (diff) | |
download | hercules-a8cc76410626fbd0cb88e8a0dcde2a95a12230c8.tar.gz hercules-a8cc76410626fbd0cb88e8a0dcde2a95a12230c8.tar.bz2 hercules-a8cc76410626fbd0cb88e8a0dcde2a95a12230c8.tar.xz hercules-a8cc76410626fbd0cb88e8a0dcde2a95a12230c8.zip |
- Fixed a compilation bug on linux (FALSE -> false)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11560 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql')
-rw-r--r-- | src/char_sql/int_mail.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/char_sql/int_mail.c b/src/char_sql/int_mail.c index 7c6b4afe5..ebcb1df32 100644 --- a/src/char_sql/int_mail.c +++ b/src/char_sql/int_mail.c @@ -76,7 +76,7 @@ int mail_fromsql(int char_id, struct mail_data *md) md->full = ( Sql_NumRows(sql_handle) > MAIL_MAX_INBOX ); md->amount = i; - md->changed = FALSE; + md->changed = false; Sql_FreeResult(sql_handle); md->unchecked = 0; @@ -107,7 +107,7 @@ int mail_savemessage(struct mail_message *msg) int j; char esc_send_name[NAME_LENGTH*2+1], esc_dest_name[NAME_LENGTH*2+1]; char esc_title[MAIL_TITLE_LENGTH*2+1], esc_body[MAIL_BODY_LENGTH*2+1]; - + if (!msg) return 0; @@ -238,7 +238,7 @@ int mapif_parse_Mail_read(int fd) mail_id = RFIFOL(fd,2); if( SQL_ERROR == Sql_Query(sql_handle, "UPDATE `%s` SET `read_flag` = '2' WHERE `id` = '%d'", mail_db, mail_id) ) Sql_ShowDebug(sql_handle); - + return 0; } @@ -322,7 +322,7 @@ int mapif_Mail_delete(int fd, int char_id, int mail_id) WFIFOL(fd,6) = mail_id; WFIFOW(fd,10) = flag; WFIFOSET(fd,12); - + return 0; } @@ -413,7 +413,7 @@ int mapif_parse_Mail_send(int fd) { // Try to find the Dest Char by Name char esc_name[NAME_LENGTH*2+1]; - + Sql_EscapeStringLen(sql_handle, esc_name, msg->dest_name, strnlen(msg->dest_name, NAME_LENGTH)); if ( SQL_ERROR == Sql_Query(sql_handle, "SELECT `account_id`, `char_id` FROM `%s` WHERE `name` = '%s'", char_db, esc_name) ) Sql_ShowDebug(sql_handle); |