renamed sendfile() since some systems have a system call named like this -

now the functions are named sendtftp() and recvtftp() instead.
This commit is contained in:
Daniel Stenberg 2005-09-16 10:52:38 +00:00
Родитель 973a18cf03
Коммит 90559bed53
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -124,8 +124,8 @@ static void mysignal(int, void (*func)(int));
struct formats; struct formats;
static int tftp(struct testcase *test, struct tftphdr *tp, int size); static int tftp(struct testcase *test, struct tftphdr *tp, int size);
static void nak(int error); static void nak(int error);
static void sendfile(struct testcase *test, struct formats *pf); static void sendtftp(struct testcase *test, struct formats *pf);
static void recvfile(struct testcase *test, struct formats *pf); static void recvtftp(struct testcase *test, struct formats *pf);
static int validate_access(struct testcase *test, const char *, int); static int validate_access(struct testcase *test, const char *, int);
static curl_socket_t peer; static curl_socket_t peer;
@ -609,9 +609,9 @@ again:
return 1; return 1;
} }
if (tp->th_opcode == WRQ) if (tp->th_opcode == WRQ)
recvfile(test, pf); recvtftp(test, pf);
else else
sendfile(test, pf); sendtftp(test, pf);
return 0; return 0;
} }
@ -706,7 +706,7 @@ static void timer(int signum)
/* /*
* Send the requested file. * Send the requested file.
*/ */
static void sendfile(struct testcase *test, struct formats *pf) static void sendtftp(struct testcase *test, struct formats *pf)
{ {
struct tftphdr *dp; struct tftphdr *dp;
struct tftphdr *ap; /* ack packet */ struct tftphdr *ap; /* ack packet */
@ -775,7 +775,7 @@ static void justquit(int signum)
/* /*
* Receive a file. * Receive a file.
*/ */
static void recvfile(struct testcase *test, struct formats *pf) static void recvtftp(struct testcase *test, struct formats *pf)
{ {
struct tftphdr *dp; struct tftphdr *dp;
struct tftphdr *ap; /* ack buffer */ struct tftphdr *ap; /* ack buffer */