mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
Fix compiler warning
This commit is contained in:
parent
fdbe0df6e7
commit
b1fece74e3
@ -159,7 +159,7 @@ int prevchar = -1; /* putbuf: previous char (cr check) */
|
|||||||
|
|
||||||
static void read_ahead(struct testcase *test,
|
static void read_ahead(struct testcase *test,
|
||||||
int convert /* if true, convert to ascii */);
|
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 *rw_init(int);
|
||||||
static struct tftphdr *w_init(void) { return rw_init(0); } /* write-behind */
|
static struct tftphdr *w_init(void) { return rw_init(0); } /* write-behind */
|
||||||
static struct tftphdr *r_init(void) { return rw_init(1); } /* read-ahead */
|
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
|
* 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.
|
* 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;
|
char *buf;
|
||||||
int count;
|
int count;
|
||||||
|
Loading…
Reference in New Issue
Block a user