diff options
author | Steve Holme <steve_holme@hotmail.com> | 2014-03-01 13:00:31 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2014-03-01 13:03:20 +0000 |
commit | 5513bbd5c38e5128dd943c28417da29f2c6f9101 (patch) | |
tree | a1413ff88a25620d170e84c7c000237bfc0fdb80 /src/tool_msgs.c | |
parent | 1f077181234525832e0fcae38f7ff4f344f4b010 (diff) | |
download | curl-5513bbd5c38e5128dd943c28417da29f2c6f9101.tar.gz |
tool: Moved --stderr to the global config
Diffstat (limited to 'src/tool_msgs.c')
-rw-r--r-- | src/tool_msgs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tool_msgs.c b/src/tool_msgs.c index c92fbace2..3311b55f5 100644 --- a/src/tool_msgs.c +++ b/src/tool_msgs.c @@ -52,7 +52,7 @@ void warnf(struct OperationConfig *config, const char *fmt, ...) ptr = print_buffer; while(len > 0) { - fputs(WARN_PREFIX, config->errors); + fputs(WARN_PREFIX, config->global->errors); if(len > (int)WARN_TEXTWIDTH) { int cut = WARN_TEXTWIDTH-1; @@ -65,13 +65,13 @@ void warnf(struct OperationConfig *config, const char *fmt, ...) max text width then! */ cut = WARN_TEXTWIDTH-1; - (void)fwrite(ptr, cut + 1, 1, config->errors); - fputs("\n", config->errors); + (void)fwrite(ptr, cut + 1, 1, config->global->errors); + fputs("\n", config->global->errors); ptr += cut+1; /* skip the space too */ len -= cut; } else { - fputs(ptr, config->errors); + fputs(ptr, config->global->errors); len = 0; } } |