Commit ff92e396 authored by Jiri Slaby's avatar Jiri Slaby Committed by Kelsey Skunberg

vt: switch vt_dont_switch to bool

BugLink: https://bugs.launchpad.net/bugs/1873852

commit f400991b upstream.

vt_dont_switch is pure boolean, no need for whole char.
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20200219073951.16151-6-jslaby@suse.czSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: default avatarKelsey Skunberg <kelsey.skunberg@canonical.com>
parent 3ce0d580
No related merge requests found
......@@ -38,7 +38,7 @@
#include <linux/kbd_diacr.h>
#include <linux/selection.h>
char vt_dont_switch;
bool vt_dont_switch;
static inline bool vt_in_use(unsigned int i)
{
......@@ -1035,12 +1035,12 @@ int vt_ioctl(struct tty_struct *tty,
case VT_LOCKSWITCH:
if (!capable(CAP_SYS_TTY_CONFIG))
return -EPERM;
vt_dont_switch = 1;
vt_dont_switch = true;
break;
case VT_UNLOCKSWITCH:
if (!capable(CAP_SYS_TTY_CONFIG))
return -EPERM;
vt_dont_switch = 0;
vt_dont_switch = false;
break;
case VT_GETHIFONTMASK:
ret = put_user(vc->vc_hi_font_mask,
......
......@@ -143,7 +143,7 @@ static inline bool vt_force_oops_output(struct vc_data *vc)
return false;
}
extern char vt_dont_switch;
extern bool vt_dont_switch;
extern int default_utf8;
extern int global_cursor_default;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment