summaryrefslogtreecommitdiff
path: root/src/char_sql
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-27 20:03:25 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-27 20:03:25 +0000
commitf4f66f5c07b22bd68274e21aee2b32cb69cea637 (patch)
tree4400d748e0e3c50c8ab512e8561e2d1b7841e595 /src/char_sql
parent0f3c97f0852fcdd43011cd3550449e5ab6037e66 (diff)
downloadhercules-f4f66f5c07b22bd68274e21aee2b32cb69cea637.tar.gz
hercules-f4f66f5c07b22bd68274e21aee2b32cb69cea637.tar.bz2
hercules-f4f66f5c07b22bd68274e21aee2b32cb69cea637.tar.xz
hercules-f4f66f5c07b22bd68274e21aee2b32cb69cea637.zip
fixing some timestamp type difference warnings...
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12669 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql')
-rw-r--r--src/char_sql/int_auction.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/char_sql/int_auction.c b/src/char_sql/int_auction.c
index e29e01e7a..c5cdf628b 100644
--- a/src/char_sql/int_auction.c
+++ b/src/char_sql/int_auction.c
@@ -177,7 +177,8 @@ void inter_auctions_fromsql(void)
struct item *item;
char *data;
StringBuf buf;
- unsigned int tick = gettick(), endtick, now = time(NULL);
+ unsigned int tick = gettick(), endtick;
+ time_t now = time(NULL);
StringBuf_Init(&buf);
StringBuf_AppendStr(&buf, "SELECT `auction_id`,`seller_id`,`seller_name`,`buyer_id`,`buyer_name`,"
@@ -222,7 +223,7 @@ void inter_auctions_fromsql(void)
}
if( auction->timestamp > now )
- endtick = ((auction->timestamp - now) * 1000) + tick;
+ endtick = ((unsigned int)(auction->timestamp - now) * 1000) + tick;
else
endtick = tick + 10000; // 10 Second's to process ended auctions