]> git.proxmox.com Git - mirror_qemu.git/blobdiff - fsdev/9p-marshal.c
throttle: use enum ThrottleDirection instead of bool is_write
[mirror_qemu.git] / fsdev / 9p-marshal.c
index f56ef0e60c0f223b47d935bb4dfe0048df7158c6..f9b0336cd59d7e4247c511d0bcf68e95802c2966 100644 (file)
 #include <glib/gprintf.h>
 #include <dirent.h>
 #include <utime.h>
-#include <sys/uio.h>
 
 #include "9p-marshal.h"
 
+P9ARRAY_DEFINE_TYPE(V9fsString, v9fs_string_free);
+
 void v9fs_string_free(V9fsString *str)
 {
     g_free(str->data);
@@ -26,12 +27,7 @@ void v9fs_string_free(V9fsString *str)
     str->size = 0;
 }
 
-void v9fs_string_null(V9fsString *str)
-{
-    v9fs_string_free(str);
-}
-
-void GCC_FMT_ATTR(2, 3)
+void G_GNUC_PRINTF(2, 3)
 v9fs_string_sprintf(V9fsString *str, const char *fmt, ...)
 {
     va_list ap;