From 74d6421da08ff2ef4b081644438c3eb86d17eac6 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 27 Oct 2020 09:55:59 +0100 Subject: tree-wide: cast result of get_process_comm() to (void) where we ignore it --- src/journal/journald-console.c | 2 +- src/journal/journald-kmsg.c | 2 +- src/journal/journald-syslog.c | 2 +- src/journal/journald-wall.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/journal') diff --git a/src/journal/journald-console.c b/src/journal/journald-console.c index 80e2958597..9497ef9a4a 100644 --- a/src/journal/journald-console.c +++ b/src/journal/journald-console.c @@ -66,7 +66,7 @@ void server_forward_console( /* Second: identifier and PID */ if (ucred) { if (!identifier) { - get_process_comm(ucred->pid, &ident_buf); + (void) get_process_comm(ucred->pid, &ident_buf); identifier = ident_buf; } diff --git a/src/journal/journald-kmsg.c b/src/journal/journald-kmsg.c index 6e7c806fd8..ca60f398c8 100644 --- a/src/journal/journald-kmsg.c +++ b/src/journal/journald-kmsg.c @@ -58,7 +58,7 @@ void server_forward_kmsg( /* Second: identifier and PID */ if (ucred) { if (!identifier) { - get_process_comm(ucred->pid, &ident_buf); + (void) get_process_comm(ucred->pid, &ident_buf); identifier = ident_buf; } diff --git a/src/journal/journald-syslog.c b/src/journal/journald-syslog.c index 46013c3878..0da7dcfcf5 100644 --- a/src/journal/journald-syslog.c +++ b/src/journal/journald-syslog.c @@ -153,7 +153,7 @@ void server_forward_syslog(Server *s, int priority, const char *identifier, cons /* Third: identifier and PID */ if (ucred) { if (!identifier) { - get_process_comm(ucred->pid, &ident_buf); + (void) get_process_comm(ucred->pid, &ident_buf); identifier = ident_buf; } diff --git a/src/journal/journald-wall.c b/src/journal/journald-wall.c index 370c9b32e2..6134ba7414 100644 --- a/src/journal/journald-wall.c +++ b/src/journal/journald-wall.c @@ -27,7 +27,7 @@ void server_forward_wall( if (ucred) { if (!identifier) { - get_process_comm(ucred->pid, &ident_buf); + (void) get_process_comm(ucred->pid, &ident_buf); identifier = ident_buf; } -- cgit v1.2.1