chiark / gitweb /
bus-proxy: tell Coverity we don't care about these return values
authorLennart Poettering <lennart@poettering.net>
Fri, 13 Feb 2015 14:33:42 +0000 (15:33 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 13 Feb 2015 14:49:51 +0000 (15:49 +0100)
src/bus-proxyd/proxy.c

index 0b8c448757f8f8013d96fe1c2d0b45a713a2b919..fb2409233c54a6d0cd7e17eea146f10e131687bb 100644 (file)
@@ -431,7 +431,7 @@ static int process_policy_unlocked(sd_bus *from, sd_bus *to, sd_bus_message *m,
                         return 0;
 
                 /* The message came from the kernel, and is sent to our legacy client. */
-                sd_bus_creds_get_well_known_names(&m->creds, &sender_names);
+                (void) sd_bus_creds_get_well_known_names(&m->creds, &sender_names);
 
                 (void) sd_bus_creds_get_euid(&m->creds, &sender_uid);
                 (void) sd_bus_creds_get_egid(&m->creds, &sender_gid);
@@ -492,7 +492,7 @@ static int process_policy_unlocked(sd_bus *from, sd_bus *to, sd_bus_message *m,
                         if (r < 0)
                                 return handle_policy_error(m, r);
 
-                        sd_bus_creds_get_well_known_names(destination_creds, &destination_names);
+                        (void) sd_bus_creds_get_well_known_names(destination_creds, &destination_names);
 
                         (void) sd_bus_creds_get_euid(destination_creds, &destination_uid);
                         (void) sd_bus_creds_get_egid(destination_creds, &destination_gid);