aboutsummaryrefslogtreecommitdiff
path: root/qemu-common.h
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2011-01-05 11:41:02 +0100
committerKevin Wolf <kwolf@redhat.com>2011-01-24 11:08:50 +0100
commit70b4f4bb05ff5e6812c6593eeefbd19bd61b517d (patch)
tree6f3cf4350dfb31281f93954c43363442cc3527ee /qemu-common.h
parentc90f1b3297943f2f142d8114bef1092f9ac9acef (diff)
Make strtosz() return int64_t instead of ssize_t
strtosz() needs to return a 64 bit type even on 32 bit architectures. Otherwise qemu-img will fail to create disk images >= 2GB Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-common.h')
-rw-r--r--qemu-common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/qemu-common.h b/qemu-common.h
index c766b990eb..c351131623 100644
--- a/qemu-common.h
+++ b/qemu-common.h
@@ -158,8 +158,8 @@ int fcntl_setfl(int fd, int flag);
#define STRTOSZ_DEFSUFFIX_MB 'M'
#define STRTOSZ_DEFSUFFIX_KB 'K'
#define STRTOSZ_DEFSUFFIX_B 'B'
-ssize_t strtosz(const char *nptr, char **end);
-ssize_t strtosz_suffix(const char *nptr, char **end, const char default_suffix);
+int64_t strtosz(const char *nptr, char **end);
+int64_t strtosz_suffix(const char *nptr, char **end, const char default_suffix);
/* path.c */
void init_paths(const char *prefix);