summaryrefslogtreecommitdiff
path: root/src/util/vircgroupv1.c
diff options
context:
space:
mode:
authorPeter Krempa <pkrempa@redhat.com>2020-10-20 17:01:51 +0200
committerPeter Krempa <pkrempa@redhat.com>2020-10-22 15:02:46 +0200
commitb16629f00c7dab1f77d451e5bb5c758abc98cd5c (patch)
tree4ef23e405a59d622ee231e4e767dbfcf1b196260 /src/util/vircgroupv1.c
parent2751b9757b6941e39b47cc837efb72a7d1487f1e (diff)
downloadlibvirt-b16629f00c7dab1f77d451e5bb5c758abc98cd5c.tar.gz
util: cgroup: Use GHashTable instead of virHashTable
Rewrite using GHashTable which already has interfaces for using a number as hash key. Glib's implementation doesn't copy the key by default, so we need to allocate it, but overal the interface is more suited for this case. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Diffstat (limited to 'src/util/vircgroupv1.c')
-rw-r--r--src/util/vircgroupv1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/vircgroupv1.c b/src/util/vircgroupv1.c
index a42b7750f9..91c1c4d4b1 100644
--- a/src/util/vircgroupv1.c
+++ b/src/util/vircgroupv1.c
@@ -752,7 +752,7 @@ virCgroupV1HasEmptyTasks(virCgroupPtr cgroup,
static int
virCgroupV1KillRecursive(virCgroupPtr group,
int signum,
- virHashTablePtr pids)
+ GHashTable *pids)
{
int controller = virCgroupV1GetAnyController(group);