aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-10-02 13:28:10 +0000
committerYang Tse <yangsita@gmail.com>2008-10-02 13:28:10 +0000
commit26a651f7aef8f51df4320f0adc0179896ee23b95 (patch)
tree3b5a66f0e402527d42d681a322b0afa4f1241bf4 /lib
parentb64f0dace3312ab8e5fb58b9390a8926f6b7ad36 (diff)
fix compiler warning: `variable' might be clobbered by `longjmp' or `vfork'
Diffstat (limited to 'lib')
-rw-r--r--lib/hostip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index 029019215..f8c2be63f 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -524,7 +524,7 @@ int Curl_resolv_timeout(struct connectdata *conn,
const char *hostname,
int port,
struct Curl_dns_entry **entry,
- long timeout)
+ volatile long timeout)
{
#ifdef USE_ALARM_TIMEOUT
#ifdef HAVE_SIGACTION