]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: fix build in virNetDevTapGetRealDeviceName
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Fri, 24 Jun 2016 18:41:43 +0000 (21:41 +0300)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Fri, 24 Jun 2016 18:41:43 +0000 (21:41 +0300)
Commit e81de04c switched virNetDevTapGetRealDeviceName() to use
virDirOpen() instead of opendir(), however it mistakenly dropped
DIR *dirp declaration, so restore that to fix build.

src/util/virnetdevtap.c

index 98e27bb26852719b7dd9d4935bd4637699bf9c31..7488a4c0f16232247440a8ff22b1558cb33cf567 100644 (file)
@@ -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;