Patchwork [32/41] savevm: unexport qemu_ftell()

login
register
mail settings
Submitter Juan Quintela
Date Oct. 2, 2012, 11:33 a.m.
Message ID <1349177616-5341-33-git-send-email-quintela@redhat.com>
Download mbox | patch
Permalink /patch/188497/
State New
Headers show

Comments

Juan Quintela - Oct. 2, 2012, 11:33 a.m.
It was unused out of savevm.c.

Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 qemu-file.h | 3 ---
 savevm.c    | 2 +-
 2 files changed, 1 insertion(+), 4 deletions(-)

Patch

diff --git a/qemu-file.h b/qemu-file.h
index 7fe7274..289849a 100644
--- a/qemu-file.h
+++ b/qemu-file.h
@@ -230,7 +230,4 @@  static inline void qemu_get_sbe64s(QEMUFile *f, int64_t *pv)
 {
     qemu_get_be64s(f, (uint64_t *)pv);
 }
-
-int64_t qemu_ftell(QEMUFile *f);
-
 #endif
diff --git a/savevm.c b/savevm.c
index 8efa7cc..8ddb9d5 100644
--- a/savevm.c
+++ b/savevm.c
@@ -664,7 +664,7 @@  int qemu_get_byte(QEMUFile *f)
     return result;
 }

-int64_t qemu_ftell(QEMUFile *f)
+static int64_t qemu_ftell(QEMUFile *f)
 {
     return f->buf_offset - f->buf_size + f->buf_index;
 }