From dcb7e5d5d25a3f2adbff8f40a1a87423307ce8fe Mon Sep 17 00:00:00 2001 From: Michel Normand Date: Thu, 29 Apr 2010 10:03:59 +0200 Subject: [PATCH] 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 --- src/lxc/confile.c | 15 --------------- 1 file changed, 15 deletions(-) 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) { -- 2.47.2