carlwgeorge / rpms / qemu

Forked from rpms/qemu a year ago
Clone
a7b9285
From d1e45898016eb902411abe5c5b377a490e2b03b2 Mon Sep 17 00:00:00 2001
Alon Levy 408bdb5
From: Paolo Bonzini <pbonzini@redhat.com>
Alon Levy 408bdb5
Date: Fri, 22 Feb 2013 17:36:31 +0100
a7b9285
Subject: [PATCH] qemu-file: make qemu_fflush and qemu_file_set_error private
a7b9285
 again
Alon Levy 408bdb5
Alon Levy 408bdb5
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Alon Levy 408bdb5
Reviewed-by: Juan Quintela <quintela@redhat.com>
Alon Levy 408bdb5
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Alon Levy 408bdb5
Signed-off-by: Juan Quintela <quintela@redhat.com>
a7b9285
(cherry picked from commit 05f28b837c6bd6124abab2496ce15c07a334a5ad)
Alon Levy 408bdb5
---
Alon Levy 408bdb5
 include/migration/qemu-file.h | 2 --
Alon Levy 408bdb5
 savevm.c                      | 4 ++--
Alon Levy 408bdb5
 2 files changed, 2 insertions(+), 4 deletions(-)
Alon Levy 408bdb5
Alon Levy 408bdb5
diff --git a/include/migration/qemu-file.h b/include/migration/qemu-file.h
Alon Levy 408bdb5
index 5e0c287..46fc11d 100644
Alon Levy 408bdb5
--- a/include/migration/qemu-file.h
Alon Levy 408bdb5
+++ b/include/migration/qemu-file.h
Alon Levy 408bdb5
@@ -82,7 +82,6 @@ QEMUFile *qemu_popen_cmd(const char *command, const char *mode);
Alon Levy 408bdb5
 int qemu_get_fd(QEMUFile *f);
Alon Levy 408bdb5
 int qemu_fclose(QEMUFile *f);
Alon Levy 408bdb5
 int64_t qemu_ftell(QEMUFile *f);
Alon Levy 408bdb5
-void qemu_fflush(QEMUFile *f);
Alon Levy 408bdb5
 void qemu_put_buffer(QEMUFile *f, const uint8_t *buf, int size);
Alon Levy 408bdb5
 void qemu_put_byte(QEMUFile *f, int v);
Alon Levy 408bdb5
 
Alon Levy 408bdb5
@@ -114,7 +113,6 @@ int qemu_file_rate_limit(QEMUFile *f);
Alon Levy 408bdb5
 int64_t qemu_file_set_rate_limit(QEMUFile *f, int64_t new_rate);
Alon Levy 408bdb5
 int64_t qemu_file_get_rate_limit(QEMUFile *f);
Alon Levy 408bdb5
 int qemu_file_get_error(QEMUFile *f);
Alon Levy 408bdb5
-void qemu_file_set_error(QEMUFile *f, int ret);
Alon Levy 408bdb5
 
Alon Levy 408bdb5
 static inline void qemu_put_be64s(QEMUFile *f, const uint64_t *pv)
Alon Levy 408bdb5
 {
Alon Levy 408bdb5
diff --git a/savevm.c b/savevm.c
Alon Levy 408bdb5
index ce10295..fef2ab9 100644
Alon Levy 408bdb5
--- a/savevm.c
Alon Levy 408bdb5
+++ b/savevm.c
Alon Levy 408bdb5
@@ -443,7 +443,7 @@ int qemu_file_get_error(QEMUFile *f)
Alon Levy 408bdb5
     return f->last_error;
Alon Levy 408bdb5
 }
Alon Levy 408bdb5
 
Alon Levy 408bdb5
-void qemu_file_set_error(QEMUFile *f, int ret)
Alon Levy 408bdb5
+static void qemu_file_set_error(QEMUFile *f, int ret)
Alon Levy 408bdb5
 {
Alon Levy 408bdb5
     if (f->last_error == 0) {
Alon Levy 408bdb5
         f->last_error = ret;
Alon Levy 408bdb5
@@ -453,7 +453,7 @@ void qemu_file_set_error(QEMUFile *f, int ret)
Alon Levy 408bdb5
 /** Flushes QEMUFile buffer
Alon Levy 408bdb5
  *
Alon Levy 408bdb5
  */
Alon Levy 408bdb5
-void qemu_fflush(QEMUFile *f)
Alon Levy 408bdb5
+static void qemu_fflush(QEMUFile *f)
Alon Levy 408bdb5
 {
Alon Levy 408bdb5
     int ret = 0;
Alon Levy 408bdb5