]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
remove unused variables
author2xsec <dh48.jeong@samsung.com>
Wed, 12 Sep 2018 08:29:09 +0000 (17:29 +0900)
committer2xsec <dh48.jeong@samsung.com>
Wed, 12 Sep 2018 08:29:09 +0000 (17:29 +0900)
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
src/lxc/confile.c
src/lxc/file_utils.c
src/lxc/storage/rsync.c

index b6c5b91b6d6ee297c342ccd53bac243f42ecd689..21e2d4a7e0e78f274eae3dd54c402de295c69b68 100644 (file)
@@ -2257,7 +2257,6 @@ static int set_config_namespace_clone(const char *key, const char *value,
 {
        char *ns, *token;
        int cloneflag = 0;
-       char *saveptr = NULL;
 
        if (lxc_config_value_empty(value))
                return clr_config_namespace_clone(key, lxc_conf, data);
@@ -2293,7 +2292,6 @@ static int set_config_namespace_keep(const char *key, const char *value,
 {
        char *ns, *token;
        int cloneflag = 0;
-       char *saveptr = NULL;
 
        if (lxc_config_value_empty(value))
                return clr_config_namespace_keep(key, lxc_conf, data);
index 3bdde2e3a45ec1e2aa5505385251ef8480221648..16897d627c9a6dc8815ce29e9ba3421393065b8a 100644 (file)
@@ -258,7 +258,6 @@ bool is_fs_type(const struct statfs *fs, fs_type_magic magic_val)
 
 bool has_fs_type(const char *path, fs_type_magic magic_val)
 {
-       bool has_type;
        int ret;
        struct statfs sb;
 
index ca2da186ebaed42eec28645282e2358b626883ab..39d09e98d920e00eaef15f6ca71b415647731f02 100644 (file)
@@ -47,7 +47,6 @@ int lxc_storage_rsync_exec_wrapper(void *data)
 
 int lxc_rsync_exec_wrapper(void *data)
 {
-       int ret;
        struct rsync_data_char *args = data;
 
        if (!lxc_switch_uid_gid(0, 0))