static int readit(struct testcase *test, struct tftphdr **dpp, int convert);
static int writeit(struct testcase *test, struct tftphdr **dpp, int ct,
int convert);
-static void mysignal(int, void (*func)(int));
#define opcode_RRQ 1
#define opcode_WRQ 2
static int validate_access(struct testcase *test, const char *, int);
static curl_socket_t peer;
-static int rexmtval = TIMEOUT;
static int maxtimeout = 5*TIMEOUT;
static char buf[PKTSIZE];
static sigjmp_buf timeoutbuf;
#endif
+#if defined(HAVE_ALARM) && defined(SIGALRM)
+static int rexmtval = TIMEOUT;
+
static void timer(int signum)
{
(void)signum;
#endif
}
+static void (int signum)
+{
+ (void)signum;
+}
+#endif /* HAVE_ALARM && SIGALRM */
+
static unsigned short sendblock;
static struct tftphdr *sdp;
static struct tftphdr *sap; /* ack packet */
} while (size == SEGSIZE);
}
-static void justtimeout(int signum)
-{
- (void)signum;
-}
-
static unsigned short recvblock;
static struct tftphdr *rdp;