render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
c480ed
From b47ae363dedecaf569906aa3a1349f6e32f4b520 Mon Sep 17 00:00:00 2001
c480ed
Message-Id: <b47ae363dedecaf569906aa3a1349f6e32f4b520@dist-git>
c480ed
From: Pavel Hrdina <phrdina@redhat.com>
c480ed
Date: Mon, 1 Jul 2019 17:05:48 +0200
c480ed
Subject: [PATCH] vircgroup: Rename structs to start with underscore
c480ed
MIME-Version: 1.0
c480ed
Content-Type: text/plain; charset=UTF-8
c480ed
Content-Transfer-Encoding: 8bit
c480ed
c480ed
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
c480ed
(cherry picked from commit 70dc671a276ba90099bd1c8ba05e450f092244ff)
c480ed
c480ed
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1689297
c480ed
c480ed
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
c480ed
Message-Id: <49ff9517362f541da5580fe9acc132319872e732.1561993099.git.phrdina@redhat.com>
c480ed
Reviewed-by: Ján Tomko <jtomko@redhat.com>
c480ed
---
c480ed
 src/util/vircgroup.c     | 2 +-
c480ed
 src/util/vircgroup.h     | 4 ++--
c480ed
 src/util/vircgrouppriv.h | 6 +++---
c480ed
 3 files changed, 6 insertions(+), 6 deletions(-)
c480ed
c480ed
diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c
c480ed
index 6bf4e88da1..7602641713 100644
c480ed
--- a/src/util/vircgroup.c
c480ed
+++ b/src/util/vircgroup.c
c480ed
@@ -385,7 +385,7 @@ virCgroupDetectMountsFromFile(virCgroupPtr group,
c480ed
             const char *typestr = virCgroupControllerTypeToString(i);
c480ed
             int typelen = strlen(typestr);
c480ed
             char *tmp = entry.mnt_opts;
c480ed
-            struct virCgroupController *controller = &group->controllers[i];
c480ed
+            struct _virCgroupController *controller = &group->controllers[i];
c480ed
             while (tmp) {
c480ed
                 char *next = strchr(tmp, ',');
c480ed
                 int len;
c480ed
diff --git a/src/util/vircgroup.h b/src/util/vircgroup.h
c480ed
index d833927678..cfa69b67cb 100644
c480ed
--- a/src/util/vircgroup.h
c480ed
+++ b/src/util/vircgroup.h
c480ed
@@ -28,8 +28,8 @@
c480ed
 # include "virutil.h"
c480ed
 # include "virbitmap.h"
c480ed
 
c480ed
-struct virCgroup;
c480ed
-typedef struct virCgroup *virCgroupPtr;
c480ed
+struct _virCgroup;
c480ed
+typedef struct _virCgroup *virCgroupPtr;
c480ed
 
c480ed
 enum {
c480ed
     VIR_CGROUP_CONTROLLER_CPU,
c480ed
diff --git a/src/util/vircgrouppriv.h b/src/util/vircgrouppriv.h
c480ed
index 722863e5b6..71788639d6 100644
c480ed
--- a/src/util/vircgrouppriv.h
c480ed
+++ b/src/util/vircgrouppriv.h
c480ed
@@ -31,7 +31,7 @@
c480ed
 
c480ed
 # include "vircgroup.h"
c480ed
 
c480ed
-struct virCgroupController {
c480ed
+struct _virCgroupController {
c480ed
     int type;
c480ed
     char *mountPoint;
c480ed
     /* If mountPoint holds several controllers co-mounted,
c480ed
@@ -42,10 +42,10 @@ struct virCgroupController {
c480ed
     char *placement;
c480ed
 };
c480ed
 
c480ed
-struct virCgroup {
c480ed
+struct _virCgroup {
c480ed
     char *path;
c480ed
 
c480ed
-    struct virCgroupController controllers[VIR_CGROUP_CONTROLLER_LAST];
c480ed
+    struct _virCgroupController controllers[VIR_CGROUP_CONTROLLER_LAST];
c480ed
 };
c480ed
 
c480ed
 int virCgroupDetectMountsFromFile(virCgroupPtr group,
c480ed
-- 
c480ed
2.22.0
c480ed