]> granicus.if.org Git - curl/commitdiff
fix compiler warning: implicit conversion from "long" to "int"
authorYang Tse <yangsita@gmail.com>
Mon, 21 Jul 2008 09:23:56 +0000 (09:23 +0000)
committerYang Tse <yangsita@gmail.com>
Mon, 21 Jul 2008 09:23:56 +0000 (09:23 +0000)
tests/server/tftpd.c

index 67daa15ac7c2d92a67cd91618584acd571728974..c50ea19497991c66d96c2afd3c93b89fe7e50a86 100644 (file)
@@ -119,7 +119,7 @@ static void mysignal(int, void (*func)(int));
 #define PKTSIZE SEGSIZE+4
 
 struct formats;
-static int tftp(struct testcase *test, struct tftphdr *tp, int size);
+static int tftp(struct testcase *test, struct tftphdr *tp, ssize_t size);
 static void nak(int error);
 static void sendtftp(struct testcase *test, struct formats *pf);
 static void recvtftp(struct testcase *test, struct formats *pf);
@@ -571,7 +571,7 @@ struct formats {
 /*
  * Handle initial connection protocol.
  */
-static int tftp(struct testcase *test, struct tftphdr *tp, int size)
+static int tftp(struct testcase *test, struct tftphdr *tp, ssize_t size)
 {
   char *cp;
   int first = 1, ecode;