tree-wide: port various places to read_boolean_file()
This commit is contained in:
@@ -869,16 +869,8 @@ int vt_disallocate(const char *tty_path) {
|
||||
}
|
||||
|
||||
static int vt_default_utf8(void) {
|
||||
_cleanup_free_ char *b = NULL;
|
||||
int r;
|
||||
|
||||
/* Read the default VT UTF8 setting from the kernel */
|
||||
|
||||
r = read_one_line_file("/sys/module/vt/parameters/default_utf8", &b);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
return parse_boolean(b);
|
||||
return read_boolean_file("/sys/module/vt/parameters/default_utf8");
|
||||
}
|
||||
|
||||
static int vt_reset_keyboard(int fd) {
|
||||
|
||||
Reference in New Issue
Block a user