summaryrefslogtreecommitdiff
path: root/lib/sendf.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-03-13 13:22:58 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-03-13 13:22:58 +0000
commitc622f2bb4eb42e5ab50a4364dfb67b9b74a30a97 (patch)
tree8c3f2567343197d1d757bf1e86bfb8d3e724d2ce /lib/sendf.c
parentcd59f13da6d70437cac83ca81440a6444c6918d1 (diff)
downloadcurl-c622f2bb4eb42e5ab50a4364dfb67b9b74a30a97.tar.gz
failf() now respects the mute flag
Diffstat (limited to 'lib/sendf.c')
-rw-r--r--lib/sendf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sendf.c b/lib/sendf.c
index ca5cd1d12..868aa887a 100644
--- a/lib/sendf.c
+++ b/lib/sendf.c
@@ -120,7 +120,7 @@ void curl_slist_free_all(struct curl_slist *list)
}
-/* infof() is for info message along the way */
+/* Curl_infof() is for info message along the way */
void Curl_infof(struct UrlData *data, char *fmt, ...)
{
@@ -133,7 +133,7 @@ void Curl_infof(struct UrlData *data, char *fmt, ...)
}
}
-/* failf() is for messages stating why we failed, the LAST one will be
+/* Curl_failf() is for messages stating why we failed, the LAST one will be
returned for the user (if requested) */
void Curl_failf(struct UrlData *data, char *fmt, ...)
@@ -142,7 +142,7 @@ void Curl_failf(struct UrlData *data, char *fmt, ...)
va_start(ap, fmt);
if(data->errorbuffer)
vsnprintf(data->errorbuffer, CURL_ERROR_SIZE, fmt, ap);
- else {
+ else if(!data->bits.mute) {
/* no errorbuffer receives this, write to data->err instead */
vfprintf(data->err, fmt, ap);
fprintf(data->err, "\n");