From: Ján Tomko Date: Tue, 13 Aug 2019 12:58:25 +0000 (+0200) Subject: util: introduce virPCIDeviceConfigOpenInternal X-Git-Tag: v5.7.0-rc1~234 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc16c69987e6ecdec7f3e614ba1bf2c6224a68db;p=thirdparty%2Flibvirt.git util: introduce virPCIDeviceConfigOpenInternal A thin wrapper to allow creating new functions. Signed-off-by: Ján Tomko Reviewed-by: Michal Privoznik --- diff --git a/src/util/virpci.c b/src/util/virpci.c index 61a6b359e5..f4be907a10 100644 --- a/src/util/virpci.c +++ b/src/util/virpci.c @@ -291,7 +291,7 @@ virPCIDeviceGetDriverPathAndName(virPCIDevicePtr dev, char **path, char **name) static int -virPCIDeviceConfigOpen(virPCIDevicePtr dev, bool fatal) +virPCIDeviceConfigOpenInternal(virPCIDevicePtr dev, bool fatal) { int fd; @@ -314,6 +314,12 @@ virPCIDeviceConfigOpen(virPCIDevicePtr dev, bool fatal) return fd; } +static int +virPCIDeviceConfigOpen(virPCIDevicePtr dev, bool fatal) +{ + return virPCIDeviceConfigOpenInternal(dev, fatal); +} + static void virPCIDeviceConfigClose(virPCIDevicePtr dev, int cfgfd) {