]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
remove unused _config_console function
authorMichel Normand <normand@fr.ibm.com>
Thu, 29 Apr 2010 08:03:59 +0000 (10:03 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Thu, 29 Apr 2010 08:03:59 +0000 (10:03 +0200)
it's usage was removed by patch
28a4b0e55c659428bc8f495fde2e774fbd0fb03c
"open the console later"

Signed-off-by: Michel Normand <normand@fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/confile.c

index e44f2cda7df8b18d9a027d02fe06ad1c3a38f423..90ccfcd5c5a3b65dbec22715653bb3da186373f0 100644 (file)
@@ -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)
 {