Avoid warnings when HAVE_ALRM and SIGALRM are not defined.

This commit is contained in:
Gisle Vanem 2009-04-08 18:37:11 +00:00
parent 6e2f0833ad
commit 59997ecad5

View File

@ -116,7 +116,6 @@ static struct tftphdr *w_init(void);
static int readit(struct testcase *test, struct tftphdr **dpp, int convert); static int readit(struct testcase *test, struct tftphdr **dpp, int convert);
static int writeit(struct testcase *test, struct tftphdr **dpp, int ct, static int writeit(struct testcase *test, struct tftphdr **dpp, int ct,
int convert); int convert);
static void mysignal(int, void (*func)(int));
#define opcode_RRQ 1 #define opcode_RRQ 1
#define opcode_WRQ 2 #define opcode_WRQ 2
@ -145,7 +144,6 @@ 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;
static int rexmtval = TIMEOUT;
static int maxtimeout = 5*TIMEOUT; static int maxtimeout = 5*TIMEOUT;
static char buf[PKTSIZE]; static char buf[PKTSIZE];
@ -744,6 +742,9 @@ static int timeout;
static sigjmp_buf timeoutbuf; static sigjmp_buf timeoutbuf;
#endif #endif
#if defined(HAVE_ALARM) && defined(SIGALRM)
static int rexmtval = TIMEOUT;
static void timer(int signum) static void timer(int signum)
{ {
(void)signum; (void)signum;
@ -760,6 +761,12 @@ static void timer(int signum)
#endif #endif
} }
static void (int signum)
{
(void)signum;
}
#endif /* HAVE_ALARM && SIGALRM */
static unsigned short sendblock; static unsigned short sendblock;
static struct tftphdr *sdp; static struct tftphdr *sdp;
static struct tftphdr *sap; /* ack packet */ static struct tftphdr *sap; /* ack packet */
@ -830,11 +837,6 @@ static void sendtftp(struct testcase *test, struct formats *pf)
} while (size == SEGSIZE); } while (size == SEGSIZE);
} }
static void justtimeout(int signum)
{
(void)signum;
}
static unsigned short recvblock; static unsigned short recvblock;
static struct tftphdr *rdp; static struct tftphdr *rdp;