提交 af2abe3f 编写于 作者: J Jiri Denemark

test: Remove unused timeval

上级 1b29646e
...@@ -499,7 +499,6 @@ cleanup: ...@@ -499,7 +499,6 @@ cleanup:
static int testOpenDefault(virConnectPtr conn) { static int testOpenDefault(virConnectPtr conn) {
int u; int u;
struct timeval tv;
testConnPtr privconn; testConnPtr privconn;
virDomainDefPtr domdef = NULL; virDomainDefPtr domdef = NULL;
virDomainObjPtr domobj = NULL; virDomainObjPtr domobj = NULL;
...@@ -526,12 +525,6 @@ static int testOpenDefault(virConnectPtr conn) { ...@@ -526,12 +525,6 @@ static int testOpenDefault(virConnectPtr conn) {
testDriverLock(privconn); testDriverLock(privconn);
conn->privateData = privconn; conn->privateData = privconn;
if (gettimeofday(&tv, NULL) < 0) {
virReportSystemError(errno,
"%s", _("getting time of day"));
goto error;
}
if (virDomainObjListInit(&privconn->domains) < 0) if (virDomainObjListInit(&privconn->domains) < 0)
goto error; goto error;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册