diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-09-16 10:52:38 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-09-16 10:52:38 +0000 |
commit | 90559bed5362be8568cff568eb950940fb4f9cf8 (patch) | |
tree | 6b2a51a0c57c37e8bc33927967755e4111a0dfb7 | |
parent | 973a18cf0357ccf0db64590fc040cd45b4f28321 (diff) |
renamed sendfile() since some systems have a system call named like this -
now the functions are named sendtftp() and recvtftp() instead.
-rw-r--r-- | tests/server/tftpd.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/server/tftpd.c b/tests/server/tftpd.c index f55e6380d..dcf6addd2 100644 --- a/tests/server/tftpd.c +++ b/tests/server/tftpd.c @@ -124,8 +124,8 @@ static void mysignal(int, void (*func)(int)); struct formats; static int tftp(struct testcase *test, struct tftphdr *tp, int size); static void nak(int error); -static void sendfile(struct testcase *test, struct formats *pf); -static void recvfile(struct testcase *test, struct formats *pf); +static void sendtftp(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 curl_socket_t peer; @@ -609,9 +609,9 @@ again: return 1; } if (tp->th_opcode == WRQ) - recvfile(test, pf); + recvtftp(test, pf); else - sendfile(test, pf); + sendtftp(test, pf); return 0; } @@ -706,7 +706,7 @@ static void timer(int signum) /* * 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 *ap; /* ack packet */ @@ -775,7 +775,7 @@ static void justquit(int signum) /* * 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 *ap; /* ack buffer */ |