From: Roman Bogorodskiy Date: Fri, 24 Jun 2016 18:41:43 +0000 (+0300) Subject: util: fix build in virNetDevTapGetRealDeviceName X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b5447e78b2cc30fd3c33650a94264bf4dffee3e2;p=libvirt.git util: fix build in virNetDevTapGetRealDeviceName Commit e81de04c switched virNetDevTapGetRealDeviceName() to use virDirOpen() instead of opendir(), however it mistakenly dropped DIR *dirp declaration, so restore that to fix build. --- diff --git a/src/util/virnetdevtap.c b/src/util/virnetdevtap.c index 98e27bb268..7488a4c0f1 100644 --- a/src/util/virnetdevtap.c +++ b/src/util/virnetdevtap.c @@ -95,6 +95,7 @@ virNetDevTapGetRealDeviceName(char *ifname ATTRIBUTE_UNUSED) #ifdef TAPGIFNAME char *ret = NULL; struct dirent *dp; + DIR *dirp = NULL; char *devpath = NULL; int fd;