]> granicus.if.org Git - curl/commitdiff
Fix compiler warning
authorYang Tse <yangsita@gmail.com>
Thu, 8 Dec 2005 16:43:32 +0000 (16:43 +0000)
committerYang Tse <yangsita@gmail.com>
Thu, 8 Dec 2005 16:43:32 +0000 (16:43 +0000)
tests/server/tftpd.c

index e4fc8368327ab10d7ae6146a45360e2bc51aa6c4..37a30bc63e06f83b144298369242f8594fea4508 100644 (file)
@@ -159,7 +159,7 @@ int prevchar = -1;      /* putbuf: previous char (cr check) */
 
 static void read_ahead(struct testcase *test,
                        int convert /* if true, convert to ascii */);
-static int write_behind(struct testcase *test, int convert);
+static ssize_t write_behind(struct testcase *test, int convert);
 static struct tftphdr *rw_init(int);
 static struct tftphdr *w_init(void) { return rw_init(0); } /* write-behind */
 static struct tftphdr *r_init(void) { return rw_init(1); } /* read-ahead */
@@ -281,7 +281,7 @@ static int writeit(struct testcase *test, struct tftphdr **dpp,
  * Note spec is undefined if we get CR as last byte of file or a
  * CR followed by anything else.  In this case we leave it alone.
  */
-static int write_behind(struct testcase *test, int convert)
+static ssize_t write_behind(struct testcase *test, int convert)
 {
   char *buf;
   int count;