summaryrefslogtreecommitdiffstats
path: root/term-utils/agetty.c
diff options
context:
space:
mode:
authorKarel Zak2012-12-23 22:14:21 +0100
committerKarel Zak2012-12-23 22:14:21 +0100
commita73f59fa03ad28d001cc09d185adf865d6fad8bd (patch)
tree20dd9c6df33b076ba85ea896455641b78af940b8 /term-utils/agetty.c
parentmkfs.minix: fsck:minix: fix compiler warnings (diff)
downloadkernel-qcow2-util-linux-a73f59fa03ad28d001cc09d185adf865d6fad8bd.tar.gz
kernel-qcow2-util-linux-a73f59fa03ad28d001cc09d185adf865d6fad8bd.tar.xz
kernel-qcow2-util-linux-a73f59fa03ad28d001cc09d185adf865d6fad8bd.zip
sulogin: remove consoles.c from libcommon
- move struct chardata to include/ttyutils.h - move console.{h,c} to login-utils/sulogin-* (it's sulogin specific) - fix sulogin and agetty includes Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'term-utils/agetty.c')
-rw-r--r--term-utils/agetty.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/term-utils/agetty.c b/term-utils/agetty.c
index 5df150a3e..b50644cac 100644
--- a/term-utils/agetty.c
+++ b/term-utils/agetty.c
@@ -178,22 +178,11 @@ struct options {
#define serial_tty_option(opt, flag) \
(((opt)->flags & (F_VCONSOLE|(flag))) == (flag))
-/* Storage for things detected while the login name was read. */
-struct chardata {
- int erase; /* erase character */
- int kill; /* kill character */
- int eol; /* end-of-line character */
- int parity; /* what parity did we see */
- int capslock; /* upper case without lower case */
-};
-
/* Initial values for the above. */
static const struct chardata init_chardata = {
- DEF_ERASE, /* default erase character */
- DEF_KILL, /* default kill character */
- 13, /* default eol char */
- 0, /* space parity */
- 0, /* no capslock */
+ .erase = DEF_ERASE, /* default erase character */
+ .kill = DEF_KILL, /* default kill character */
+ .eol = 13 /* default eol char */
};
struct Speedtab {