Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > ebe084c140192657f9094e135a84202c > files > 109

libvirt-0.8.2-29.el5.src.rpm

From 097029ce2e15b7c5eacabb5329c1c3c0e8b97d00 Mon Sep 17 00:00:00 2001
Message-Id: <097029ce2e15b7c5eacabb5329c1c3c0e8b97d00.1290613257.git.jdenemar@redhat.com>
From: Jiri Denemark <jdenemar@redhat.com>
Date: Wed, 24 Nov 2010 11:33:54 +0100
Subject: [PATCH] qemu: Fix warnings in text monitor events

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=574017

RHEL-5 only
---
 src/qemu/qemu_monitor_text.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/qemu/qemu_monitor_text.c b/src/qemu/qemu_monitor_text.c
index 4c5de55..5122fc6 100644
--- a/src/qemu/qemu_monitor_text.c
+++ b/src/qemu/qemu_monitor_text.c
@@ -106,7 +106,7 @@ static void
 qemuMonitorTextHandleRTCChange(qemuMonitorPtr mon,
                                char *event)
 {
-    long offset;
+    int offset;
 
     if (virStrToLong_i(event + strlen(EVENT_RTC_PREFIX),
                        NULL, 10, &offset) < 0) {
@@ -458,7 +458,6 @@ int
 qemuMonitorTextSetCapabilities(qemuMonitorPtr mon)
 {
     char *info = NULL;
-    char *offset;
 
     if (qemuMonitorCommand(mon, "notify all on", &info) < 0)
         return -1;
-- 
1.7.3.2