summaryrefslogtreecommitdiff
path: root/lib/telnet.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-11-25 14:30:53 +0100
committerYang Tse <yangsita@gmail.com>2011-11-25 14:30:53 +0100
commit703fa0a6a8b8a8890b05292a0a07956c4f502e91 (patch)
tree342a71eac895bd9e2132f8022e4c317e2caaf8f3 /lib/telnet.c
parent97d7a9260e4f2f335b3632180877c25e0efdc8e3 (diff)
downloadcurl-703fa0a6a8b8a8890b05292a0a07956c4f502e91.tar.gz
telnet.c: fix MSVC compiler warning
Diffstat (limited to 'lib/telnet.c')
-rw-r--r--lib/telnet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/telnet.c b/lib/telnet.c
index 3e9e1a306..54977fbf4 100644
--- a/lib/telnet.c
+++ b/lib/telnet.c
@@ -80,12 +80,12 @@
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)