diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 2de838be92ff78a27c70454103df0f253e6281fb..bd8bd5b31e9262a149231770b991bed20a273cb6 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -733,6 +733,7 @@ void virDomainDefFree(virDomainDefPtr def) #ifndef PROXY +static void virDomainSnapshotObjListDeinit(virDomainSnapshotObjListPtr snapshots); static void virDomainObjFree(virDomainObjPtr dom) { if (!dom) @@ -6803,7 +6804,7 @@ static void virDomainSnapshotObjListDeallocator(void *payload, virDomainSnapshotObjUnref(obj); } -void virDomainSnapshotObjListDeinit(virDomainSnapshotObjListPtr snapshots) +static void virDomainSnapshotObjListDeinit(virDomainSnapshotObjListPtr snapshots) { if (snapshots->objs) virHashFree(snapshots->objs, virDomainSnapshotObjListDeallocator); diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index 82f2d150a9e6fc95f9d0c97cc48447bf85d3e856..fadc8bd4f759a9c7d5c91659815a3f64d04995a0 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -782,7 +782,6 @@ virDomainSnapshotObjPtr virDomainSnapshotAssignDef(virDomainSnapshotObjListPtr s const virDomainSnapshotDefPtr def); int virDomainSnapshotObjListInit(virDomainSnapshotObjListPtr objs); -void virDomainSnapshotObjListDeinit(virDomainSnapshotObjListPtr objs); int virDomainSnapshotObjListGetNames(virDomainSnapshotObjListPtr snapshots, char **const names, int maxnames); int virDomainSnapshotObjListNum(virDomainSnapshotObjListPtr snapshots);