]> granicus.if.org Git - curl/commitdiff
revert change introduced in tftpd.c revision 1.44
authorYang Tse <yangsita@gmail.com>
Fri, 3 Oct 2008 03:42:44 +0000 (03:42 +0000)
committerYang Tse <yangsita@gmail.com>
Fri, 3 Oct 2008 03:42:44 +0000 (03:42 +0000)
tests/server/tftpd.c

index 443eea970250161cde7f8700a9b826e01acad638..fc51b6effc8dcbcbf17281977adacd88dd413314 100644 (file)
@@ -760,9 +760,9 @@ static void timer(int signum)
  */
 static void sendtftp(struct testcase *test, struct formats *pf)
 {
-  struct tftphdr * volatile dp;
-  struct tftphdr * volatile ap;    /* ack packet */
-  volatile unsigned short block = 1;
+  struct tftphdr *dp;
+  struct tftphdr *ap;    /* ack packet */
+  unsigned short block = 1;
   int size;
   ssize_t n;
 #if defined(HAVE_ALARM) && defined(SIGALRM)
@@ -835,9 +835,9 @@ static void justtimeout(int signum)
  */
 static void recvtftp(struct testcase *test, struct formats *pf)
 {
-  struct tftphdr * volatile dp;
-  struct tftphdr * volatile ap;    /* ack buffer */
-  volatile unsigned short block = 0;
+  struct tftphdr *dp;
+  struct tftphdr *ap;    /* ack buffer */
+  unsigned short block = 0;
   ssize_t n, size;
 #if defined(HAVE_ALARM) && defined(SIGALRM)
   mysignal(SIGALRM, timer);