From 226a18d6712281757e9c552370d1e6ffa305167e Mon Sep 17 00:00:00 2001 From: Daniel Lezcano Date: Thu, 14 Jan 2010 07:43:18 +0100 Subject: [PATCH] fix compilation warning lxc_config_define_load should an int Signed-off-by: Daniel Lezcano --- src/lxc/confile.c | 3 +-- src/lxc/confile.h | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) 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); -- 2.47.2