Always explicitly discard popped stream type from __fsetlocking

No biggie, but I noticed this while looking into bus_match_to_string.
This commit is contained in:
Chris Down 2018-12-11 13:34:01 +00:00 committed by Lennart Poettering
parent b2c9e8e187
commit 912b4547b5
2 changed files with 2 additions and 2 deletions

View File

@ -864,7 +864,7 @@ char *bus_match_to_string(struct bus_match_component *components, unsigned n_com
if (!f)
return NULL;
__fsetlocking(f, FSETLOCKING_BYCALLER);
(void) __fsetlocking(f, FSETLOCKING_BYCALLER);
for (i = 0; i < n_components; i++) {
char buf[32];

View File

@ -804,7 +804,7 @@ int dnssec_verify_rrset(
f = open_memstream(&sig_data, &sig_size);
if (!f)
return -ENOMEM;
__fsetlocking(f, FSETLOCKING_BYCALLER);
(void) __fsetlocking(f, FSETLOCKING_BYCALLER);
fwrite_uint16(f, rrsig->rrsig.type_covered);
fwrite_uint8(f, rrsig->rrsig.algorithm);