diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-10-27 09:55:59 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-10-27 14:06:49 +0100 |
commit | 74d6421da08ff2ef4b081644438c3eb86d17eac6 (patch) | |
tree | ff702dfbbec3f13dcbc67129949e1554f23a7e2d /src/journal | |
parent | e08dabfec7304dfa0d59997dc4219ffaf22af717 (diff) | |
download | systemd-74d6421da08ff2ef4b081644438c3eb86d17eac6.tar.gz |
tree-wide: cast result of get_process_comm() to (void) where we ignore it
Diffstat (limited to 'src/journal')
-rw-r--r-- | src/journal/journald-console.c | 2 | ||||
-rw-r--r-- | src/journal/journald-kmsg.c | 2 | ||||
-rw-r--r-- | src/journal/journald-syslog.c | 2 | ||||
-rw-r--r-- | src/journal/journald-wall.c | 2 |
4 files changed, 4 insertions, 4 deletions
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; } |