[lxc-devel] [lxc/master] conf: remove unused argument

2xsec on Github lxc-bot at linuxcontainers.org
Mon Jun 18 08:58:37 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 407 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180618/e6a6ecee/attachment.bin>
-------------- next part --------------
From 663014ee7c151ef0920344c6d609042a7f4d7a57 Mon Sep 17 00:00:00 2001
From: Donghwa Jeong <dh48.jeong at samsung.com>
Date: Mon, 18 Jun 2018 17:47:33 +0900
Subject: [PATCH] conf: remove unused argument

Signed-off-by: Donghwa Jeong <dh48.jeong at samsung.com>
---
 src/lxc/conf.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lxc/conf.c b/src/lxc/conf.c
index f3feae7df..f37e52635 100644
--- a/src/lxc/conf.c
+++ b/src/lxc/conf.c
@@ -947,7 +947,7 @@ static int lxc_setup_ttys(struct lxc_conf *conf)
 	return 0;
 }
 
-int lxc_allocate_ttys(const char *name, struct lxc_conf *conf)
+int lxc_allocate_ttys(struct lxc_conf *conf)
 {
 	int i, ret;
 	struct lxc_tty_info *ttys = &conf->ttys;
@@ -1062,7 +1062,7 @@ static int lxc_create_ttys(struct lxc_handler *handler)
 	int ret = -1;
 	struct lxc_conf *conf = handler->conf;
 
-	ret = lxc_allocate_ttys(handler->name, conf);
+	ret = lxc_allocate_ttys(conf);
 	if (ret < 0) {
 		ERROR("Failed to allocate ttys");
 		goto on_error;


More information about the lxc-devel mailing list