diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2011-05-24 15:21:27 +0530 |
---|---|---|
committer | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2011-09-22 21:38:52 +0530 |
commit | 70c18fc08bcc9e9bbd8c00ca5e694e07890687e5 (patch) | |
tree | b3b330b88c77d8b78ebcc40c578118db166fe168 /hw/9pfs/virtio-9p.c | |
parent | d85a1302a91912c52cdc3fe459b313848a8a0792 (diff) | |
download | qemu-70c18fc08bcc9e9bbd8c00ca5e694e07890687e5.tar.gz qemu-70c18fc08bcc9e9bbd8c00ca5e694e07890687e5.tar.bz2 qemu-70c18fc08bcc9e9bbd8c00ca5e694e07890687e5.zip |
hw/9pfs: Make v9fs_string* functions non-static
We will use them later in other files
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Diffstat (limited to 'hw/9pfs/virtio-9p.c')
-rw-r--r-- | hw/9pfs/virtio-9p.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index d28edb799a..dc3e32b53d 100644 --- a/hw/9pfs/virtio-9p.c +++ b/hw/9pfs/virtio-9p.c @@ -80,20 +80,20 @@ void cred_init(FsCred *credp) credp->fc_rdev = -1; } -static void v9fs_string_init(V9fsString *str) +void v9fs_string_init(V9fsString *str) { str->data = NULL; str->size = 0; } -static void v9fs_string_free(V9fsString *str) +void v9fs_string_free(V9fsString *str) { g_free(str->data); str->data = NULL; str->size = 0; } -static void v9fs_string_null(V9fsString *str) +void v9fs_string_null(V9fsString *str) { v9fs_string_free(str); } @@ -192,7 +192,7 @@ alloc_print: return vsprintf(*strp, fmt, ap); } -static void GCC_FMT_ATTR(2, 3) +void GCC_FMT_ATTR(2, 3) v9fs_string_sprintf(V9fsString *str, const char *fmt, ...) { va_list ap; @@ -208,7 +208,7 @@ v9fs_string_sprintf(V9fsString *str, const char *fmt, ...) str->size = err; } -static void v9fs_string_copy(V9fsString *lhs, V9fsString *rhs) +void v9fs_string_copy(V9fsString *lhs, V9fsString *rhs) { v9fs_string_free(lhs); v9fs_string_sprintf(lhs, "%s", rhs->data); |