terminal: convert to strequal()

parent 928ada18
...@@ -970,10 +970,8 @@ int lxc_terminal_setup(struct lxc_conf *conf) ...@@ -970,10 +970,8 @@ int lxc_terminal_setup(struct lxc_conf *conf)
int ret; int ret;
struct lxc_terminal *terminal = &conf->console; struct lxc_terminal *terminal = &conf->console;
if (terminal->path && strcmp(terminal->path, "none") == 0) { if (terminal->path && strequal(terminal->path, "none"))
INFO("No terminal requested"); return log_info(0, "No terminal requested");
return 0;
}
ret = lxc_terminal_create_foreign(conf, terminal); ret = lxc_terminal_create_foreign(conf, terminal);
if (ret < 0) if (ret < 0)
......
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