]> granicus.if.org Git - curl/commitdiff
telnet.c: fix MSVC compiler warning
authorYang Tse <yangsita@gmail.com>
Fri, 25 Nov 2011 13:30:53 +0000 (14:30 +0100)
committerYang Tse <yangsita@gmail.com>
Fri, 25 Nov 2011 13:30:53 +0000 (14:30 +0100)
lib/telnet.c

index 3e9e1a3060bd6f9f345f022a3efdb5e7e293a3e2..54977fbf4ec0aa0babf2e0473fb060c3bfcc54fb 100644 (file)
   do {                                                  \
     x->subend = x->subpointer;                          \
     CURL_SB_CLEAR(x);                                   \
-  } while(0)
+  } WHILE_FALSE
 #define CURL_SB_ACCUM(x,c)                                   \
   do {                                                       \
     if(x->subpointer < (x->subbuffer+sizeof x->subbuffer))   \
       *x->subpointer++ = (c);                                \
-  } while(0)
+  } WHILE_FALSE
 
 #define  CURL_SB_GET(x) ((*x->subpointer++)&0xff)
 #define  CURL_SB_PEEK(x)   ((*x->subpointer)&0xff)