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

index 87e513e9808c9bcdd1a6ddbabdaf065d2a684c95..0a1dc59bdc0fd95ea4bba0eb5bc121d3e8a12519 100644 (file)
@@ -1035,7 +1035,7 @@ static CURLcode tftp_do(struct connectdata *conn, bool *done)
         case TFTP_EVENT_OACK:
           code = tftp_parse_option_ack(state,
                                        (const char *)state->rpacket.data+2,
-                                       state->rbytes-2);
+                                       (int)state->rbytes-2);
           if(code)
             return code;
           break;