]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
fix compilation warning
authorDaniel Lezcano <daniel.lezcano@free.fr>
Thu, 14 Jan 2010 06:43:18 +0000 (07:43 +0100)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Thu, 14 Jan 2010 06:43:18 +0000 (07:43 +0100)
lxc_config_define_load should an int

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

index af663e098c2ca52483b32e836c9cdf904af9af8b..557845cc512bb7e8c6771d0dc1c8a656cb49bf0a 100644 (file)
@@ -685,8 +685,7 @@ int lxc_config_define_add(struct lxc_list *defines, char* arg)
        return 0;
 }
 
-char* lxc_config_define_load(struct lxc_list *defines,
-       struct lxc_conf *conf)
+int lxc_config_define_load(struct lxc_list *defines, struct lxc_conf *conf)
 {
        struct lxc_list *it;
        int ret = 0;
index cfe96e52b8d72af83eb9dad81bfefb7dc5f5787c..6698fb288b6f9fbe131ab8d5773f1ffdd18f1ed1 100644 (file)
@@ -28,5 +28,5 @@ extern int lxc_config_read(const char *file, struct lxc_conf *conf);
 extern int lxc_config_readline(char *buffer, struct lxc_conf *conf);
 
 extern int lxc_config_define_add(struct lxc_list *defines, char* arg);
-extern char *lxc_config_define_load(struct lxc_list *defines,
-                                   struct lxc_conf *conf);
+extern int lxc_config_define_load(struct lxc_list *defines,
+                                 struct lxc_conf *conf);