From: Michel Normand Date: Thu, 29 Apr 2010 08:03:59 +0000 (+0200) Subject: remove unused _config_console function X-Git-Tag: lxc-0.7.0~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcb7e5d5d25a3f2adbff8f40a1a87423307ce8fe;p=thirdparty%2Flxc.git remove unused _config_console function it's usage was removed by patch 28a4b0e55c659428bc8f495fde2e774fbd0fb03c "open the console later" Signed-off-by: Michel Normand Signed-off-by: Daniel Lezcano --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index e44f2cda7..90ccfcd5c 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -620,21 +620,6 @@ static int config_cap_drop(const char *key, char *value, return ret; } -static int _config_console(const char *key, char *value, struct lxc_conf *lxc_conf) -{ - int fd; - - fd = open(value, O_CLOEXEC | O_RDWR | O_CREAT | O_APPEND, 0600); - if (fd < 0) { - SYSERROR("failed to open '%s'", value); - return -1; - } - - lxc_conf->console.peer = fd; - - return 0; -} - static int config_console(const char *key, char *value, struct lxc_conf *lxc_conf) {