]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
fix lxc_file_cb prototype
authorCedric Le Goater <clg@fr.ibm.com>
Wed, 13 Jan 2010 17:51:15 +0000 (18:51 +0100)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Wed, 13 Jan 2010 17:51:15 +0000 (18:51 +0100)
Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/conf.c
src/lxc/confile.c
src/lxc/parse.h

index df6068841266d29c0795c2166490057df208a410..d3a1065e1c548f506e21ba1706250aed66c3f3af 100644 (file)
@@ -113,7 +113,7 @@ static struct mount_opt mount_opt[] = {
        { NULL,         0, 0              },
 };
 
-static int configure_find_fstype_cb(void* buffer, void *data)
+static int configure_find_fstype_cb(char* buffer, void *data)
 {
        struct cbarg {
                const char *rootfs;
@@ -338,7 +338,7 @@ static int setup_tty(const char *rootfs, const struct lxc_tty_info *tty_info)
        return 0;
 }
 
-static int setup_rootfs_pivot_root_cb(void *buffer, void *data)
+static int setup_rootfs_pivot_root_cb(char *buffer, void *data)
 {
        struct lxc_list *mountlist, *listentry, *iterator;
        char *pivotdir, *mountpoint, *mountentry;
index 6e15d09026bc7da4e13b12e905d7a55dd9296aaf..9dd33c06a9cdb78c2ea26b5619daa8a018db59b6 100644 (file)
@@ -620,7 +620,7 @@ static int config_utsname(const char *key, char *value, struct lxc_conf *lxc_con
        return 0;
 }
 
-static int parse_line(void *buffer, void *data)
+static int parse_line(char *buffer, void *data)
 {
        struct config *config;
        char *line = buffer;
index a1ccceaa36c5e804233be7ae6df1c28aea538eb3..94b886ebdf2a150b52a40b422fd310ee9476e190 100644 (file)
@@ -26,7 +26,7 @@
 typedef int (*lxc_dir_cb)(const char *name, const char *directory,
                          const char *file, void *data);
 
-typedef int (*lxc_file_cb)(void *buffer, void *data);
+typedef int (*lxc_file_cb)(char *buffer, void *data);
 
 extern int lxc_dir_for_each(const char *name, const char *directory,
                            lxc_dir_cb callback, void *data);