summaryrefslogtreecommitdiffstats
path: root/util/oslib-win32.c
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2015-11-14 20:25:44 +0100
committerStefan Weil <sw@weilnetz.de>2015-11-30 06:47:02 +0100
commita28c2f2df7679e3a87789e9fb7ed69331f697297 (patch)
tree176a321b673ba655566aa9f4f5af7f6bf62bfe73 /util/oslib-win32.c
parent857a0e387a6c91b5ea012aafae04c95eba314306 (diff)
downloadhqemu-a28c2f2df7679e3a87789e9fb7ed69331f697297.zip
hqemu-a28c2f2df7679e3a87789e9fb7ed69331f697297.tar.gz
oslib-win32: Change return type of function getpagesize
getpagesize on Linux returns an int. Fix QEMU's implementation for Windows to return an int (instead of size_t), too. This fixes a compiler warning which was introduced recently (commit 093e3c42). Signed-off-by: Stefan Weil <sw@weilnetz.de>
Diffstat (limited to 'util/oslib-win32.c')
-rw-r--r--util/oslib-win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/oslib-win32.c b/util/oslib-win32.c
index 09f9e98..6a47019 100644
--- a/util/oslib-win32.c
+++ b/util/oslib-win32.c
@@ -454,7 +454,7 @@ gint g_poll(GPollFD *fds, guint nfds, gint timeout)
return retval;
}
-size_t getpagesize(void)
+int getpagesize(void)
{
SYSTEM_INFO system_info;
OpenPOWER on IntegriCloud