chiark / gitweb /
logind: rename vtconsole to seat0
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 17 Sep 2013 15:39:59 +0000 (17:39 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 17 Sep 2013 18:47:19 +0000 (13:47 -0500)
commit92432fcc7f3a0320c07e99c5d395568a3aa216b6
tree0e9ccd1b9571c54764d55991b9c10f7f51a80f13
parent3331234adc763378a5e48e7ad6dc2bf9657aa535
logind: rename vtconsole to seat0

The seat->vtconsole member always points to the default seat seat0. Even
if VTs are disabled, it's used as default seat. Therefore, rename it to
seat0 to correctly state what it is.

This also changes the seat files in /run from IS_VTCONSOLE to IS_SEAT0. It
wasn't used by any code, yet, so this seems fine.

While we are at it, we also remove every "if (s->vtconsole)" as this
pointer is always valid!
src/login/logind-dbus.c
src/login/logind-seat.c
src/login/logind-seat.h
src/login/logind-session.c
src/login/logind.c
src/login/logind.h