diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2010-02-15 21:29:19 +0000 | 
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2010-02-15 21:29:19 +0000 | 
| commit | bb2d9c3704c687a644f62fbc17c0a0a26bf406eb (patch) | |
| tree | e2a813d5db9a8c6e40bbf7ba26e44264b6937de2 /src | |
| parent | d5b2d8e0810d2f6fb6e45d583cd9dea87bf40259 (diff) | |
use (void) in front of fwrite() calls that ignore the return code
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.c | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/src/main.c b/src/main.c index 3d097fd1d..b60aeb1e6 100644 --- a/src/main.c +++ b/src/main.c @@ -652,7 +652,7 @@ static void warnf(struct Configurable *config, const char *fmt, ...)               max text width then! */            cut = WARN_TEXTWIDTH-1; -        fwrite(ptr, cut + 1, 1, config->errors); +        (void)fwrite(ptr, cut + 1, 1, config->errors);          fputs("\n", config->errors);          ptr += cut+1; /* skip the space too */          len -= cut; @@ -3704,14 +3704,14 @@ int my_trace(CURL *handle, curl_infotype type,            if(!newl) {              fprintf(output, "%s%s ", timebuf, s_infotype[type]);            } -          fwrite(data+st, i-st+1, 1, output); +          (void)fwrite(data+st, i-st+1, 1, output);            st = i+1;            newl = FALSE;          }        }        if(!newl)          fprintf(output, "%s%s ", timebuf, s_infotype[type]); -      fwrite(data+st, i-st+1, 1, output); +      (void)fwrite(data+st, i-st+1, 1, output);        newl = (bool)(size && (data[size-1] != '\n'));        traced_data = FALSE;        break; @@ -3719,7 +3719,7 @@ int my_trace(CURL *handle, curl_infotype type,      case CURLINFO_HEADER_IN:        if(!newl)          fprintf(output, "%s%s ", timebuf, s_infotype[type]); -      fwrite(data, size, 1, output); +      (void)fwrite(data, size, 1, output);        newl = (bool)(size && (data[size-1] != '\n'));        traced_data = FALSE;        break; | 
