]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
sulogin: add missing type
authorKarel Zak <kzak@redhat.com>
Tue, 9 May 2017 09:59:53 +0000 (11:59 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 9 May 2017 09:59:53 +0000 (11:59 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/sulogin.c

index 093d7f9e2c48240ef0266ab7f39185f9a7af5235..2487838e7093e58c260670d0c0247d359fb71a31 100644 (file)
@@ -103,7 +103,7 @@ static void tcinit(struct console *con)
 {
        int flags = 0, mode = 0;
        struct termios *tio = &con->tio;
-       const fd = con->fd;
+       const int fd = con->fd;
 #ifdef USE_PLYMOUTH_SUPPORT
        struct termios lock;
        int i = (plymouth_command(MAGIC_PING)) ? PLYMOUTH_TERMIOS_FLAGS_DELAY : 0;