Rename config variable 'tty' to 'device'

This commit is contained in:
Martin Lund 2022-10-19 22:29:33 +02:00
parent 6f9e41152b
commit 48a2298e81
2 changed files with 9 additions and 9 deletions

View file

@ -112,7 +112,7 @@ static int data_handler(void *user, const char *section, const char *name,
if (!strcmp(section, c.section_name))
{
// Set configuration parameter if found
if (!strcmp(name, "tty"))
if (!strcmp(name, "device"))
{
asprintf(&c.tty, value, c.match);
option.tty_device = c.tty;