diff options
| author | Jes Sorensen <Jes.Sorensen@redhat.com> | 2011-01-05 11:41:02 +0100 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2011-01-24 11:08:50 +0100 |
| commit | 70b4f4bb05ff5e6812c6593eeefbd19bd61b517d (patch) | |
| tree | 6f3cf4350dfb31281f93954c43363442cc3527ee /vl.c | |
| parent | c90f1b3297943f2f142d8114bef1092f9ac9acef (diff) | |
| download | focaccia-qemu-70b4f4bb05ff5e6812c6593eeefbd19bd61b517d.tar.gz focaccia-qemu-70b4f4bb05ff5e6812c6593eeefbd19bd61b517d.zip | |
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 'vl.c')
| -rw-r--r-- | vl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vl.c b/vl.c index 0292184273..14255c4948 100644 --- a/vl.c +++ b/vl.c @@ -804,7 +804,7 @@ static void numa_add(const char *optarg) if (get_param_value(option, 128, "mem", optarg) == 0) { node_mem[nodenr] = 0; } else { - ssize_t sval; + int64_t sval; sval = strtosz(option, NULL); if (sval < 0) { fprintf(stderr, "qemu: invalid numa mem size: %s\n", optarg); @@ -2245,7 +2245,7 @@ int main(int argc, char **argv, char **envp) exit(0); break; case QEMU_OPTION_m: { - ssize_t value; + int64_t value; value = strtosz(optarg, NULL); if (value < 0) { |