diff --git a/lib/hostip.c b/lib/hostip.c index 03dcce86cc11d37d2f0a334023f19483aa34296f..21dcf5b1e2e434ee040f1affd679ae2e7fec5738 100644 --- a/lib/hostip.c +++ b/lib/hostip.c @@ -592,7 +592,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 ? timeout/1000L : timeout)); + prev_alarm = alarm((unsigned int) (timeout/1000L)); } #else