aboutsummaryrefslogtreecommitdiff
path: root/lib/telnet.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-03-25 02:30:58 +0000
committerYang Tse <yangsita@gmail.com>2007-03-25 02:30:58 +0000
commitf08ac8683418e2d241f12661521f003eef902720 (patch)
tree048a098cde3ce79ad7322d219a3b98050073dc36 /lib/telnet.c
parentd6eca8922960f2e3bf2cd07eef3eebbdb7ee265a (diff)
fix compiler warning
Diffstat (limited to 'lib/telnet.c')
-rw-r--r--lib/telnet.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/telnet.c b/lib/telnet.c
index 756f358f4..621e5f908 100644
--- a/lib/telnet.c
+++ b/lib/telnet.c
@@ -95,6 +95,10 @@
#define CURL_SB_EOF(x) (x->subpointer >= x->subend)
#define CURL_SB_LEN(x) (x->subend - x->subpointer)
+#ifdef CURL_DISABLE_VERBOSE_STRINGS
+#define printoption(a,b,c,d) do { } while (0)
+#endif
+
#ifdef USE_WINSOCK
typedef FARPROC WSOCK2_FUNC;
static CURLcode check_wsock2 ( struct SessionHandle *data );
@@ -105,9 +109,11 @@ void telrcv(struct connectdata *,
unsigned char *inbuf, /* Data received from socket */
ssize_t count); /* Number of bytes received */
+#ifndef CURL_DISABLE_VERBOSE_STRINGS
static void printoption(struct SessionHandle *data,
const char *direction,
int cmd, int option);
+#endif
static void negotiate(struct connectdata *);
static void send_negotiation(struct connectdata *, int cmd, int option);
@@ -244,6 +250,7 @@ static void negotiate(struct connectdata *conn)
}
}
+#ifndef CURL_DISABLE_VERBOSE_STRINGS
static void printoption(struct SessionHandle *data,
const char *direction, int cmd, int option)
{
@@ -282,6 +289,7 @@ static void printoption(struct SessionHandle *data,
}
}
}
+#endif
static void send_negotiation(struct connectdata *conn, int cmd, int option)
{