mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-04 10:23:02 -05:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user