]> granicus.if.org Git - curl/commitdiff
changes to silent compiler warnings with 64bit systems.
authorGunter Knauf <gk@gknw.de>
Fri, 24 Jul 2009 22:06:19 +0000 (22:06 +0000)
committerGunter Knauf <gk@gknw.de>
Fri, 24 Jul 2009 22:06:19 +0000 (22:06 +0000)
lib/tftp.c

index e8d1f478348d23a2787a1c31e52704b93e4728ac..87e513e9808c9bcdd1a6ddbabdaf065d2a684c95 100644 (file)
@@ -703,7 +703,7 @@ static CURLcode tftp_tx(tftp_state_data_t *state, tftp_event_t event)
       state->state = TFTP_STATE_FIN;
       return CURLE_OK;
     }
-    res = Curl_fillreadbuffer(state->conn, state->blksize, &readcount);
+    res = Curl_fillreadbuffer(state->conn, (int)state->blksize, &readcount);
     state->sbytes = readcount;
     if(res)
       return res;
@@ -839,7 +839,7 @@ static CURLcode tftp_connect(struct connectdata *conn, bool *done)
 
   /* alloc pkt buffers based on specified blksize */
   if(conn->data->set.tftp_blksize) {
-    blksize = conn->data->set.tftp_blksize;
+    blksize = (int)conn->data->set.tftp_blksize;
     if(blksize > TFTP_BLKSIZE_MAX || blksize < TFTP_BLKSIZE_MIN )
       return CURLE_TFTP_ILLEGAL;
   }