From: Chris Down Date: Tue, 11 Dec 2018 13:34:01 +0000 (+0000) Subject: Always explicitly discard popped stream type from __fsetlocking X-Git-Tag: v240~86 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=912b4547b52f912ddd1fb3ad7c68621b3b8a94a0;p=thirdparty%2Fsystemd.git Always explicitly discard popped stream type from __fsetlocking No biggie, but I noticed this while looking into bus_match_to_string. --- diff --git a/src/libsystemd/sd-bus/bus-match.c b/src/libsystemd/sd-bus/bus-match.c index 6812c28904a..ad135406f68 100644 --- a/src/libsystemd/sd-bus/bus-match.c +++ b/src/libsystemd/sd-bus/bus-match.c @@ -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]; diff --git a/src/resolve/resolved-dns-dnssec.c b/src/resolve/resolved-dns-dnssec.c index d9633629e85..335fd477800 100644 --- a/src/resolve/resolved-dns-dnssec.c +++ b/src/resolve/resolved-dns-dnssec.c @@ -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);