*/
static void sendtftp(struct testcase *test, struct formats *pf)
{
- struct tftphdr *dp;
- struct tftphdr *ap; /* ack packet */
- unsigned short block = 1;
+ struct tftphdr * volatile dp;
+ struct tftphdr * volatile ap; /* ack packet */
+ volatile unsigned short block = 1;
int size;
ssize_t n;
#if defined(HAVE_ALARM) && defined(SIGALRM)
*/
static void recvtftp(struct testcase *test, struct formats *pf)
{
- struct tftphdr *dp;
- struct tftphdr *ap; /* ack buffer */
- unsigned short block = 0;
+ struct tftphdr * volatile dp;
+ struct tftphdr * volatile ap; /* ack buffer */
+ volatile unsigned short block = 0;
ssize_t n, size;
#if defined(HAVE_ALARM) && defined(SIGALRM)
mysignal(SIGALRM, timer);