tty-ask-password-agent: add (void) cast to mkdir/mkfifo calls we knowingly ignore

This commit is contained in:
Lennart Poettering 2018-01-11 13:08:18 +01:00
parent dccca82b1a
commit e3e2cf07b1

View file

@ -417,8 +417,8 @@ static int wall_tty_block(void) {
if (asprintf(&p, "/run/systemd/ask-password-block/%u:%u", major(devnr), minor(devnr)) < 0)
return log_oom();
mkdir_parents_label(p, 0700);
mkfifo(p, 0600);
(void) mkdir_parents_label(p, 0700);
(void) mkfifo(p, 0600);
fd = open(p, O_RDONLY|O_CLOEXEC|O_NONBLOCK|O_NOCTTY);
if (fd < 0)