summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDhaval Giani <dhaval.giani@gmail.com>2010-03-26 15:04:36 +0100
committerDhaval Giani <dhaval.giani@gmail.com>2010-03-26 15:10:42 +0100
commit4d9cfa810c30ffa5e2e5a6d1f289f95ad23354a5 (patch)
treeaf457403180a466dd4f2c502aab13f97905b34ba
parentd6cb02fd4f0fcd08f5904dd3ae5d62df72427552 (diff)
downloadlibcg-master.zip
libcg-master.tar.gz
libcg-master.tar.xz
libcgroup: Fix coding style issues in config.cmaster
Pre: total: 1 errors, 10 warnings, 817 lines checked Post: total: 0 errors, 4 warnings, 818 lines checked Unfixed warnings are because they break text and therefore capabilities to easily grep through. Signed-off-by: Dhaval Giani <dhaval.giani@gmail.com>
-rw-r--r--src/config.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/config.c b/src/config.c
index 98eace3..a27a4d6 100644
--- a/src/config.c
+++ b/src/config.c
@@ -13,10 +13,10 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* TODOs:
- * 1. Implement our own hashing scheme
- * 2. Add namespace support
- * 3. Add support for parsing cgroup filesystem and creating a
- * config out of it.
+ * 1. Implement our own hashing scheme
+ * 2. Add namespace support
+ * 3. Add support for parsing cgroup filesystem and creating a
+ * config out of it.
*
* Code initiated and designed by Balbir Singh. All faults are most likely
* his mistake.
@@ -532,7 +532,8 @@ static int config_validate_namespaces(void)
* Search through the mount table to locate which subsystems
* are mounted together.
*/
- while (!strncmp(cg_mount_table[j].path, mount_path, FILENAME_MAX)) {
+ while (!strncmp(cg_mount_table[j].path, mount_path,
+ FILENAME_MAX)) {
if (!namespace && cg_namespace_table[j]) {
/* In case namespace is not setup, set it up */
namespace = cg_namespace_table[j];
@@ -569,8 +570,7 @@ static int config_validate_namespaces(void)
error = ECGOTHER;
goto out_error;
}
- }
- else if (strcmp(namespace, cg_namespace_table[j])) {
+ } else if (strcmp(namespace, cg_namespace_table[j])) {
error = ECGNAMESPACEPATHS;
goto out_error;
}
@@ -608,7 +608,8 @@ static int config_order_namespace_table(void)
for (i = 0; i < CG_CONTROLLER_MAX; i++)
cg_namespace_table[i] = NULL;
- memset(cg_namespace_table, 0, CG_CONTROLLER_MAX * sizeof(cg_namespace_table[0]));
+ memset(cg_namespace_table, 0,
+ CG_CONTROLLER_MAX * sizeof(cg_namespace_table[0]));
/*
* Now fill up the namespace table looking at the table we have