Fix unused results warnings
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 8 Dec 2016 03:04:45 +0000 (19:04 -0800)
committerFelix Fietkau <nbd@nbd.name>
Fri, 9 Dec 2016 12:06:06 +0000 (13:06 +0100)
commita4e49b4163b28b2d12e718e66c4fcba87acef33e
tree442565686aacca891c994d3bc2320bfe411c85ce
parent48cfff3fbec9be3a9b7bd6e654812ad58a67d1d1
Fix unused results warnings

Fixes:

uclient-http.c:385:8: error: ignoring return value of 'fread', declared with attribute warn_unused_result [-Werror=unused-result]
   fread(&val, sizeof(val), 1, f);
        ^

uclient-fetch.c: In function 'main':
uclient-fetch.c:664:12: error: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Werror=unused-result]
    asprintf(&auth_str, "%s:%s", username, password);
            ^
uclient-fetch.c: In function 'read_data_cb':
uclient-fetch.c:269:9: error: ignoring return value of 'write', declared with attribute warn_unused_result [-Werror=unused-result]
    write(output_fd, buf, len);

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
uclient-fetch.c
uclient-http.c