Skip to content
Snippets Groups Projects
Commit 51e84c77 authored by Yang Tse's avatar Yang Tse
Browse files

fix compiler warning: implicit conversion from "long" to "int"

parent 775d9e06
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment