static int timeout;
static int maxtimeout = 5 * TIMEOUT;
-static unsigned short sendblock; /* block count used by sendtftp() */
-static struct tftphdr *sdp; /* data buffer used by sendtftp() */
-static struct tftphdr *sap; /* ack buffer used by sendtftp() */
-
-static unsigned short recvblock; /* block count used by recvtftp() */
-static struct tftphdr *rdp; /* data buffer used by recvtftp() */
-static struct tftphdr *rap; /* ack buffer used by recvtftp() */
-
#ifdef ENABLE_IPV6
static bool use_ipv6 = FALSE;
#endif
{
int size;
ssize_t n;
+ unsigned short sendblock; /* block count */
+ struct tftphdr *sdp; /* data buffer */
+ struct tftphdr *sap; /* ack buffer */
+
sendblock = 1;
#if defined(HAVE_ALARM) && defined(SIGALRM)
mysignal(SIGALRM, timer);
static void recvtftp(struct testcase *test, struct formats *pf)
{
ssize_t n, size;
+ unsigned short recvblock; /* block count */
+ struct tftphdr *rdp; /* data buffer */
+ struct tftphdr *rap; /* ack buffer */
+
recvblock = 0;
#if defined(HAVE_ALARM) && defined(SIGALRM)
mysignal(SIGALRM, timer);