mirror of
https://github.com/curl/curl.git
synced 2026-08-26 04:43:35 +03:00
fix compiler warning: conversion may lose significant bits
This commit is contained in:
parent
5d47bf3776
commit
7e3f0bffe5
7 changed files with 85 additions and 8 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue