提交 b5447e78 编写于 作者: R Roman Bogorodskiy

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.
上级 01f4a4a0
...@@ -95,6 +95,7 @@ virNetDevTapGetRealDeviceName(char *ifname ATTRIBUTE_UNUSED) ...@@ -95,6 +95,7 @@ virNetDevTapGetRealDeviceName(char *ifname ATTRIBUTE_UNUSED)
#ifdef TAPGIFNAME #ifdef TAPGIFNAME
char *ret = NULL; char *ret = NULL;
struct dirent *dp; struct dirent *dp;
DIR *dirp = NULL;
char *devpath = NULL; char *devpath = NULL;
int fd; int fd;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册