coding style fix
Signed-off-by: Ivana Varekova <[email protected]>
---
src/api.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/api.c b/src/api.c
index 63813a3..974ef9f 100644
--- a/src/api.c
+++ b/src/api.c
@@ -650,15 +650,17 @@ int cgroup_init()
/* do not have duplicates in mount table */
duplicate = 0;
for (j = 0; j < found_mnt; j++) {
- if (strncmp(mntopt, cg_mount_table[j].name,
FILENAME_MAX)
+ if (strncmp(mntopt, cg_mount_table[j].name,
+ FILENAME_MAX) == 0) {
== 0) {
duplicate = 1;
break;
}
}
if (duplicate) {
- cgroup_dbg("controller %s is already mounted on
%s\n",
- mntopt, cg_mount_table[j].path);
+ cgroup_dbg("controller %s is already mounted "
+ "on %s\n", mntopt,
+ cg_mount_table[j].path);
continue;
}
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel