mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Remove conn parameter from virReportOOMError
This commit is contained in:
@@ -747,7 +747,7 @@ static int qemudInitPaths(struct qemud_server *server,
|
||||
if (server->privileged) {
|
||||
dir_prefix = strdup (LOCAL_STATE_DIR);
|
||||
if (dir_prefix == NULL) {
|
||||
virReportOOMError(NULL);
|
||||
virReportOOMError();
|
||||
goto cleanup;
|
||||
}
|
||||
if (snprintf (sock_dir, maxlen, "%s/run/libvirt",
|
||||
@@ -768,7 +768,7 @@ static int qemudInitPaths(struct qemud_server *server,
|
||||
|
||||
sock_dir_prefix = strdup (sock_dir);
|
||||
if (!sock_dir_prefix) {
|
||||
virReportOOMError(NULL);
|
||||
virReportOOMError();
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
@@ -788,10 +788,10 @@ static int qemudInitPaths(struct qemud_server *server,
|
||||
|
||||
if (server->privileged) {
|
||||
if (!(server->logDir = strdup (LOCAL_STATE_DIR "/log/libvirt")))
|
||||
virReportOOMError(NULL);
|
||||
virReportOOMError();
|
||||
} else {
|
||||
if (virAsprintf(&server->logDir, "%s/.libvirt/log", dir_prefix) < 0)
|
||||
virReportOOMError(NULL);
|
||||
virReportOOMError();
|
||||
}
|
||||
|
||||
if (server->logDir == NULL)
|
||||
|
||||
@@ -2877,7 +2877,7 @@ static char *addrToString(remote_error *rerr,
|
||||
}
|
||||
|
||||
if (virAsprintf(&addr, "%s;%s", host, port) == -1) {
|
||||
virReportOOMError(NULL);
|
||||
virReportOOMError();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user