diff options
author | Ján Tomko <jtomko@redhat.com> | 2020-09-23 19:28:31 +0200 |
---|---|---|
committer | Ján Tomko <jtomko@redhat.com> | 2020-09-24 11:19:06 +0200 |
commit | 92047567cf74032f62bf0bc6b24bb35a1dde6154 (patch) | |
tree | 73b685a1aa73f918e8dee47197eb61d8d77c95ef /src/libvirt-host.c | |
parent | 3a983573fb493a5005f5cce5ceb7d4be666f6071 (diff) | |
download | libvirt-92047567cf74032f62bf0bc6b24bb35a1dde6154.tar.gz |
Reduce scope of some variables
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
Diffstat (limited to 'src/libvirt-host.c')
-rw-r--r-- | src/libvirt-host.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libvirt-host.c b/src/libvirt-host.c index 07d13585f4..58622d415d 100644 --- a/src/libvirt-host.c +++ b/src/libvirt-host.c @@ -1352,8 +1352,6 @@ virConnectSetKeepAlive(virConnectPtr conn, int interval, unsigned int count) { - int ret = -1; - VIR_DEBUG("conn=%p, interval=%d, count=%u", conn, interval, count); virResetLastError(); @@ -1361,7 +1359,7 @@ virConnectSetKeepAlive(virConnectPtr conn, virCheckConnectReturn(conn, -1); if (conn->driver->connectSetKeepAlive) { - ret = conn->driver->connectSetKeepAlive(conn, interval, count); + int ret = conn->driver->connectSetKeepAlive(conn, interval, count); if (ret < 0) goto error; return ret; |