[lxc-devel] [PATCH 1/2] fix gcc error: typedef redefinition (against git staging)

Dwight Engen dwight.engen at oracle.com
Mon Sep 10 18:26:36 UTC 2012


Fix gcc error confile.c:83: error: redefinition of typedef ‘config_cb’.
Its already defined the same way in confile.h.

Signed-off-by: Dwight Engen <dwight.engen at oracle.com>
---
 src/lxc/confile.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/src/lxc/confile.c b/src/lxc/confile.c
index 0f4e11d..f1a01da 100644
--- a/src/lxc/confile.c
+++ b/src/lxc/confile.c
@@ -80,8 +80,6 @@ static int config_seccomp(const char *, char *, struct lxc_conf *);
 static int config_includefile(const char *, char *, struct lxc_conf *);
 static int config_network_nic(const char *, char *, struct lxc_conf *);
 
-typedef int (*config_cb)(const char *, char *, struct lxc_conf *);
-
 static struct lxc_config_t config[] = {
 
 	{ "lxc.arch",                 config_personality          },




More information about the lxc-devel mailing list