]> granicus.if.org Git - curl/commitdiff
added casts to silent compiler warning on 64bit systems.
authorGunter Knauf <gk@gknw.de>
Sun, 6 Sep 2009 20:16:59 +0000 (20:16 +0000)
committerGunter Knauf <gk@gknw.de>
Sun, 6 Sep 2009 20:16:59 +0000 (20:16 +0000)
lib/nss.c

index d70d1beaf5e23fabef2e0c0df16fb9842d705360..9353879f7f5ba647867fea014c37ee90ef876ea7 100644 (file)
--- a/lib/nss.c
+++ b/lib/nss.c
@@ -1283,7 +1283,7 @@ int Curl_nss_send(struct connectdata *conn,  /* connection data */
   int rc;
 
   if(data->set.timeout)
-    timeout = PR_MillisecondsToInterval(data->set.timeout);
+    timeout = PR_MillisecondsToInterval((PRUint32)data->set.timeout);
   else
     timeout = PR_MillisecondsToInterval(DEFAULT_CONNECT_TIMEOUT);
 
@@ -1319,7 +1319,7 @@ ssize_t Curl_nss_recv(struct connectdata * conn, /* connection data */
   PRInt32 timeout;
 
   if(data->set.timeout)
-    timeout = PR_SecondsToInterval(data->set.timeout);
+    timeout = PR_SecondsToInterval((PRUint32)data->set.timeout);
   else
     timeout = PR_MillisecondsToInterval(DEFAULT_CONNECT_TIMEOUT);