aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-12-01 23:33:43 +0100
committerYang Tse <yangsita@gmail.com>2010-12-01 23:33:43 +0100
commit7e3f0bffe5d930489db80e1d65c27fe44a51f6f4 (patch)
tree77c1c1161573e324846c8ee46857810613e4dde0 /lib/hostip.c
parent5d47bf377668846d915c3d8a3f22cfdf66041512 (diff)
fix compiler warning: conversion may lose significant bits
Diffstat (limited to 'lib/hostip.c')
-rw-r--r--lib/hostip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index 0ae6518f5..3db5b4967 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -67,6 +67,7 @@
#include "strerror.h"
#include "url.h"
#include "inet_ntop.h"
+#include "warnless.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
@@ -597,7 +598,7 @@ int Curl_resolv_timeout(struct connectdata *conn,
/* alarm() makes a signal get sent when the timeout fires off, and that
will abort system calls */
- prev_alarm = alarm((unsigned int) (timeout/1000L));
+ prev_alarm = alarm(curlx_sltoui(timeout/1000L));
/* This allows us to time-out from the name resolver, as the timeout
will generate a signal and we will siglongjmp() from that here.