[libvirt] [PATCH] Cgroup: Replace 'newpath' with 'newPath'

Wangyufei (James) james.wangyufei at huawei.com
Fri Dec 6 04:15:35 UTC 2013


>From be1ce1c794b05a27aa85d037500a821b8c514d12 Mon Sep 17 00:00:00 2001
From: Zhou Yimin <zhouyimin at huawei.com>
Date: Fri, 6 Dec 2013 11:38:14 +0800
Subject: [PATCH] Cgroup: Replace 'newpath' with 'newPath'

Unifying codding style, replace 'newpath' with 'newPath'.

From: Zhou Yimin <zhouyimin at huawei.com>
---
 src/util/vircgroup.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c
index 5c43e10..9674328 100644
--- a/src/util/vircgroup.c
+++ b/src/util/vircgroup.c
@@ -1246,7 +1246,7 @@ virCgroupNewPartition(const char *path,
     int ret = -1;
     char *parentPath = NULL;
     virCgroupPtr parent = NULL;
-    char *newpath = NULL;
+    char *newPath = NULL;
     VIR_DEBUG("path=%s create=%d controllers=%x",
               path, create, controllers);
 
@@ -1257,15 +1257,15 @@ virCgroupNewPartition(const char *path,
         return -1;
     }
 
-    if (virCgroupSetPartitionSuffix(path, &newpath) < 0)
+    if (virCgroupSetPartitionSuffix(path, &newPath) < 0)
         goto cleanup;
 
-    if (virCgroupNew(-1, newpath, NULL, controllers, group) < 0)
+    if (virCgroupNew(-1, newPath, NULL, controllers, group) < 0)
         goto cleanup;
 
-    if (STRNEQ(newpath, "/")) {
+    if (STRNEQ(newPath, "/")) {
         char *tmp;
-        if (VIR_STRDUP(parentPath, newpath) < 0)
+        if (VIR_STRDUP(parentPath, newPath) < 0)
             goto cleanup;
 
         tmp = strrchr(parentPath, '/');
@@ -1287,7 +1287,7 @@ cleanup:
         virCgroupFree(group);
     virCgroupFree(&parent);
     VIR_FREE(parentPath);
-    VIR_FREE(newpath);
+    VIR_FREE(newPath);
     return ret;
 }
 
-- 
1.7.3.1.msysgit.0

Best Regards,
-WangYufei






More information about the libvir-list mailing list