]> git.proxmox.com Git - mirror_lxc.git/commitdiff
terminal: convert to strequal()
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 13 Feb 2021 20:30:11 +0000 (21:30 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sat, 13 Feb 2021 20:40:28 +0000 (21:40 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/terminal.c

index 0e05c9de143255bf0928782950569f9555ad731d..d8d6c897b3209aefb77da7979fd124670d4346ac 100644 (file)
@@ -970,10 +970,8 @@ int lxc_terminal_setup(struct lxc_conf *conf)
        int ret;
        struct lxc_terminal *terminal = &conf->console;
 
-       if (terminal->path && strcmp(terminal->path, "none") == 0) {
-               INFO("No terminal requested");
-               return 0;
-       }
+       if (terminal->path && strequal(terminal->path, "none"))
+               return log_info(0, "No terminal requested");
 
        ret = lxc_terminal_create_foreign(conf, terminal);
        if (ret < 0)