aboutsummaryrefslogtreecommitdiff
path: root/lib/sendf.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-03-21 08:17:13 +0000
committerYang Tse <yangsita@gmail.com>2007-03-21 08:17:13 +0000
commitfe10cb2ef59a5989f35f97f86d3b9eaee41d474b (patch)
tree5cbd72613b65dbb3eef18569ec07fe822f09c167 /lib/sendf.c
parent842be6c52f1562c2b78380c790217ad2a9c6a987 (diff)
avoid the use of variadic macros for greater portability
Diffstat (limited to 'lib/sendf.c')
-rw-r--r--lib/sendf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/sendf.c b/lib/sendf.c
index bf9ee490a..a4a1347f7 100644
--- a/lib/sendf.c
+++ b/lib/sendf.c
@@ -224,6 +224,10 @@ static size_t convert_lineends(struct SessionHandle *data,
void Curl_infof(struct SessionHandle *data, const char *fmt, ...)
{
+#ifdef CURL_DISABLE_VERBOSE_STRINGS
+ (void)data;
+ (void)fmt;
+#else
if(data && data->set.verbose) {
va_list ap;
size_t len;
@@ -234,6 +238,7 @@ void Curl_infof(struct SessionHandle *data, const char *fmt, ...)
len = strlen(print_buffer);
Curl_debug(data, CURLINFO_TEXT, print_buffer, len, NULL);
}
+#endif
}
/* Curl_failf() is for messages stating why we failed.