aboutsummaryrefslogtreecommitdiff
path: root/tests/server/tftpd.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2005-12-08 16:43:32 +0000
committerYang Tse <yangsita@gmail.com>2005-12-08 16:43:32 +0000
commitb1fece74e3bf8fb4226961ae2b168dac5c30f530 (patch)
tree258944cdffcf1b0eff57db1fa00647fcaf8c9b39 /tests/server/tftpd.c
parentfdbe0df6e77ffcf7249da605e6881f32f2c4d25f (diff)
Fix compiler warning
Diffstat (limited to 'tests/server/tftpd.c')
-rw-r--r--tests/server/tftpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/server/tftpd.c b/tests/server/tftpd.c
index e4fc83683..37a30bc63 100644
--- a/tests/server/tftpd.c
+++ b/tests/server/tftpd.c
@@ -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;