Patchwork [39/41] savevm: un-export qemu_file_set_error()

login
register
mail settings
Submitter Juan Quintela
Date Sept. 21, 2012, 8:47 a.m.
Message ID <1348217255-22441-40-git-send-email-quintela@redhat.com>
Download mbox | patch
Permalink /patch/185655/
State New
Headers show

Comments

Juan Quintela - Sept. 21, 2012, 8:47 a.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 qemu-file.h | 1 -
 savevm.c    | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)
Paolo Bonzini - Sept. 21, 2012, 12:53 p.m.
Il 21/09/2012 10:47, Juan Quintela ha scritto:
> Signed-off-by: Juan Quintela <quintela@redhat.com>
> ---
>  qemu-file.h | 1 -
>  savevm.c    | 2 +-
>  2 files changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/qemu-file.h b/qemu-file.h
> index 289849a..8dd9207 100644
> --- a/qemu-file.h
> +++ b/qemu-file.h
> @@ -103,7 +103,6 @@ int qemu_file_rate_limit(QEMUFile *f);
>  int64_t qemu_file_set_rate_limit(QEMUFile *f, int64_t new_rate);
>  int64_t qemu_file_get_rate_limit(QEMUFile *f);
>  int qemu_file_get_error(QEMUFile *f);
> -void qemu_file_set_error(QEMUFile *f, int error);
> 
>  /* Try to send any outstanding data.  This function is useful when output is
>   * halted due to rate limiting or EAGAIN errors occur as it can be used to
> diff --git a/savevm.c b/savevm.c
> index 59ec8bf..68c0464 100644
> --- a/savevm.c
> +++ b/savevm.c
> @@ -440,7 +440,7 @@ int qemu_file_get_error(QEMUFile *f)
>      return f->last_error;
>  }
> 
> -void qemu_file_set_error(QEMUFile *f, int ret)
> +static void qemu_file_set_error(QEMUFile *f, int ret)
>  {
>      f->last_error = ret;
>  }
> 

Yay.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>

Patch

diff --git a/qemu-file.h b/qemu-file.h
index 289849a..8dd9207 100644
--- a/qemu-file.h
+++ b/qemu-file.h
@@ -103,7 +103,6 @@  int qemu_file_rate_limit(QEMUFile *f);
 int64_t qemu_file_set_rate_limit(QEMUFile *f, int64_t new_rate);
 int64_t qemu_file_get_rate_limit(QEMUFile *f);
 int qemu_file_get_error(QEMUFile *f);
-void qemu_file_set_error(QEMUFile *f, int error);

 /* Try to send any outstanding data.  This function is useful when output is
  * halted due to rate limiting or EAGAIN errors occur as it can be used to
diff --git a/savevm.c b/savevm.c
index 59ec8bf..68c0464 100644
--- a/savevm.c
+++ b/savevm.c
@@ -440,7 +440,7 @@  int qemu_file_get_error(QEMUFile *f)
     return f->last_error;
 }

-void qemu_file_set_error(QEMUFile *f, int ret)
+static void qemu_file_set_error(QEMUFile *f, int ret)
 {
     f->last_error = ret;
 }