mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
test: Remove unused timeval
This commit is contained in:
parent
1b29646e60
commit
af2abe3f19
@ -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) {
|
|||||||
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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user