]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cleanup config.h
authorDaniel Lezcano <daniel.lezcano@free.fr>
Mon, 30 Mar 2009 12:02:19 +0000 (14:02 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Mon, 30 Mar 2009 12:02:19 +0000 (14:02 +0200)
Rename lxc_config.h to confile.h

Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr>
src/lxc/Makefile.am
src/lxc/confile.c [moved from src/lxc/lxc_config.c with 99% similarity]
src/lxc/confile.h [moved from src/lxc/lxc_config.h with 100% similarity]
src/lxc/lxc_create.c
src/lxc/lxc_execute.c

index a48db135e5d86f667086a46ed77eef5a65376267..bf9bb88a62dba1bcd2c707d6b31da14414c284e2 100644 (file)
@@ -85,7 +85,7 @@ lxc_unshare_LDADD = liblxc.la
 lxc_init_SOURCES = lxc_init.c
 lxc_init_LDADD = liblxc.la
 
-lxc_create_SOURCES = lxc_create.c lxc_config.c lxc_config.h
+lxc_create_SOURCES = lxc_create.c confile.c confile.h
 lxc_create_LDADD = liblxc.la
 
 lxc_destroy_SOURCES = lxc_destroy.c
@@ -97,7 +97,7 @@ lxc_start_LDADD = liblxc.la
 lxc_stop_SOURCES = lxc_stop.c
 lxc_stop_LDADD = liblxc.la
 
-lxc_execute_SOURCES = lxc_execute.c lxc_config.c lxc_config.h
+lxc_execute_SOURCES = lxc_execute.c confile.c confile.h
 lxc_execute_LDADD = liblxc.la
 
 lxc_monitor_SOURCES = lxc_monitor.c
similarity index 99%
rename from src/lxc/lxc_config.c
rename to src/lxc/confile.c
index 1637f20686bdcf40920e6b65a487c36e6fede86d..4a2fc5cf2c87ac81187c9065b7ec5b579e84866b 100644 (file)
@@ -83,7 +83,7 @@ static struct config *getconfig(const char *key)
        int i;
 
        for (i = 0; i < config_size; i++)
-               if (!strncmp(config[i].name, key, 
+               if (!strncmp(config[i].name, key,
                             strlen(config[i].name)))
                        return &config[i];
        return NULL;
@@ -102,7 +102,7 @@ static int config_network_type(const char *key, char *value, struct lxc_conf *lx
                lxc_log_syserror("failed to allocate memory");
                return -1;
        }
-       
+
        lxc_list_init(&network->netdev);
 
        netdev = malloc(sizeof(*netdev));
@@ -136,7 +136,7 @@ static int config_network_type(const char *key, char *value, struct lxc_conf *lx
        list->elem = network;
 
        lxc_list_add(networks, list);
-       
+
        if (!strcmp(value, "veth"))
                network->type = VETH;
        else if (!strcmp(value, "macvlan"))
@@ -442,7 +442,7 @@ static int config_cgroup(const char *key, char *value, struct lxc_conf *lxc_conf
 
        if (strlen(subkey) == strlen(token))
                return -1;
-       
+
        subkey += strlen(token);
 
        cglist = malloc(sizeof(*cglist));
@@ -507,7 +507,7 @@ static int config_utsname(const char *key, char *value, struct lxc_conf *lxc_con
        }
 
        if (strlen(value) >= sizeof(utsname->nodename)) {
-               lxc_log_error("node name '%s' is too long", 
+               lxc_log_error("node name '%s' is too long",
                              utsname->nodename);
                return -1;
        }
@@ -538,7 +538,7 @@ static int parse_line(void *buffer, void *data)
                lxc_log_error("invalid configuration line: %s", line);
                return -1;
        }
-       
+
        *dot = '\0';
        value = dot + 1;
 
similarity index 100%
rename from src/lxc/lxc_config.h
rename to src/lxc/confile.h
index dccdccfad47f64f9e5409dd2aa4eaa817b758aae..12e14f9e2245605943a12383a6ccd157d663f3ce 100644 (file)
@@ -32,7 +32,7 @@
 #include <net/if.h>
 
 #include <lxc/lxc.h>
-#include <lxc/lxc_config.h>
+#include "confile.h"
 
 void usage(char *cmd)
 {
index 66f66fde13303b2fc82b366b0ad45fb05b5215f8..bdf65aa13fdd22955f538d213c50a8c342ae21cb 100644 (file)
@@ -31,7 +31,7 @@
 #include <sys/param.h>
 
 #include <lxc/lxc.h>
-#include <lxc/lxc_config.h>
+#include "confile.h"
 
 void usage(char *cmd)
 {