xbps-checkvers: fix a warning with glibc.

found by @q66

main.c:195:8: error: ignoring return value of 'fread', declared with attribute warn_unused_result [-Werror=unused-result]
This commit is contained in:
Juan RP 2019-10-27 09:13:46 +01:00
parent c3a64f60e9
commit 9ebe82fdc3
No known key found for this signature in database
GPG Key ID: AF19F6CB482F9368

View File

@ -192,7 +192,7 @@ rcv_load_file(rcv_t *rcv, const char *fname)
}
}
(void)fread(rcv->buf, sizeof(char), rcv->len, file);
(void)!fread(rcv->buf, sizeof(char), rcv->len, file);
rcv->buf[rcv->len] = '\0';
fclose(file);
rcv->ptr = rcv->buf;