Always explicitly discard popped stream type from __fsetlocking
authorChris Down <chris@chrisdown.name>
Tue, 11 Dec 2018 13:34:01 +0000 (13:34 +0000)
committerLennart Poettering <lennart@poettering.net>
Tue, 11 Dec 2018 17:49:54 +0000 (18:49 +0100)
No biggie, but I noticed this while looking into bus_match_to_string.

src/libsystemd/sd-bus/bus-match.c
src/resolve/resolved-dns-dnssec.c

index 6812c28..ad13540 100644 (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];
index d963362..335fd47 100644 (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);