diff options
author | Yang Tse <yangsita@gmail.com> | 2009-04-14 12:53:53 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-04-14 12:53:53 +0000 |
commit | 737707bf4bc37017ffce685dbe088a9cd359a3d4 (patch) | |
tree | 8a3c8401b05953bd1c31367e41f2cae8cb355706 /ares_process.c | |
parent | 382dc0d71995a0b44c94cace70f317eb6ae860a3 (diff) | |
download | c-ares-737707bf4bc37017ffce685dbe088a9cd359a3d4.tar.gz c-ares-737707bf4bc37017ffce685dbe088a9cd359a3d4.tar.bz2 c-ares-737707bf4bc37017ffce685dbe088a9cd359a3d4.zip |
fix compiler warning: implicit conversion shortens 64-bit value into a 32-bit value
Diffstat (limited to 'ares_process.c')
-rw-r--r-- | ares_process.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ares_process.c b/ares_process.c index 3aa75cd..e2d902f 100644 --- a/ares_process.c +++ b/ares_process.c @@ -1,7 +1,7 @@ /* $Id$ */ /* Copyright 1998 by the Massachusetts Institute of Technology. - * Copyright (C) 2004-2008 by Daniel Stenberg + * Copyright (C) 2004-2009 by Daniel Stenberg * * Permission to use, copy, modify, and distribute this * software and its documentation for any purpose and without @@ -104,7 +104,7 @@ static void end_query(ares_channel channel, struct query *query, int status, int ares__timedout(struct timeval *now, struct timeval *check) { - int secs = (now->tv_sec - check->tv_sec); + long secs = (now->tv_sec - check->tv_sec); if(secs > 0) return 1; /* yes, timed out */ |