From 993e67d6fcd79d3fb9c96a805b8c3882206c3b2c Mon Sep 17 00:00:00 2001
From: Tim Wiederhake <twiederh@redhat.com>
Date: Tue, 23 Mar 2021 11:01:53 +0100
Subject: [PATCH 092/108] virCPUDefFindFeature: Make first argument const ptr

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com
(cherry picked from commit 1e1db6783636ac22faab91e1462d3b859b3ce605)
---
 src/conf/cpu_conf.c | 2 +-
 src/conf/cpu_conf.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/conf/cpu_conf.c b/src/conf/cpu_conf.c
index 07404c6fb0..989306b1c0 100644
--- a/src/conf/cpu_conf.c
+++ b/src/conf/cpu_conf.c
@@ -935,7 +935,7 @@ virCPUDefAddFeature(virCPUDefPtr def,
 
 
 virCPUFeatureDefPtr
-virCPUDefFindFeature(virCPUDefPtr def,
+virCPUDefFindFeature(const virCPUDef *def,
                      const char *name)
 {
     size_t i;
diff --git a/src/conf/cpu_conf.h b/src/conf/cpu_conf.h
index a95d56d017..1b297ed246 100644
--- a/src/conf/cpu_conf.h
+++ b/src/conf/cpu_conf.h
@@ -227,7 +227,7 @@ virCPUDefUpdateFeature(virCPUDefPtr cpu,
                        int policy);
 
 virCPUFeatureDefPtr
-virCPUDefFindFeature(virCPUDefPtr def,
+virCPUDefFindFeature(const virCPUDef *def,
                      const char *name);
 
 int
-- 
2.33.0

