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