From: Daniel Lezcano Date: Thu, 14 Jan 2010 06:43:18 +0000 (+0100) Subject: fix compilation warning X-Git-Tag: lxc-0.6.5~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=226a18d6712281757e9c552370d1e6ffa305167e;p=thirdparty%2Flxc.git fix compilation warning lxc_config_define_load should an int Signed-off-by: Daniel Lezcano --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index af663e098..557845cc5 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -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; diff --git a/src/lxc/confile.h b/src/lxc/confile.h index cfe96e52b..6698fb288 100644 --- a/src/lxc/confile.h +++ b/src/lxc/confile.h @@ -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);