static size_t my_fwrite(void *buffer, size_t sz, size_t nmemb, void *stream)
{
+ int res;
size_t rc;
struct OutStruct *out=(struct OutStruct *)stream;
struct Configurable *config = out->config;
if(config->nobuffer) {
/* disable output buffering */
- rc = fflush(out->stream);
- if(rc) {
+ res = fflush(out->stream);
+ if(res) {
/* return a value that isn't the same as sz * nmemb */
rc = (0 == (sz * nmemb)) ? 1 : 0;
return rc; /* failure */