mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-04-01 20:05:19 +00: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:
parent
01f4a4a070
commit
b5447e78b2
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user