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:
parent
c3a64f60e9
commit
9ebe82fdc3
@ -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';
|
rcv->buf[rcv->len] = '\0';
|
||||||
fclose(file);
|
fclose(file);
|
||||||
rcv->ptr = rcv->buf;
|
rcv->ptr = rcv->buf;
|
||||||
|
Loading…
Reference in New Issue
Block a user