A thin wrapper to allow creating new functions. Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx> --- src/util/virpci.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) { -- 2.20.1 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list