Use (void) to silenc coverity on proc title changes

This is a cosmetic best-effort thing anyway.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2016-02-19 07:35:35 -05:00
parent 18665d1f67
commit 79d6297252
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -205,7 +205,7 @@ void rename_process(const char name[8]) {
* "systemd"). If you pass a longer string it will be
* truncated */
prctl(PR_SET_NAME, name);
(void) prctl(PR_SET_NAME, name);
if (program_invocation_name)
strncpy(program_invocation_name, name, strlen(program_invocation_name));
+1 -1
View File
@@ -403,7 +403,7 @@ static void* thread_worker(void *p) {
assert_se(pthread_sigmask(SIG_BLOCK, &fullset, NULL) == 0);
/* Assign a pretty name to this thread */
prctl(PR_SET_NAME, (unsigned long) "sd-resolve");
(void) prctl(PR_SET_NAME, (unsigned long) "sd-resolve");
while (!resolve->dead) {
union {