aboutsummaryrefslogtreecommitdiff
path: root/util/guest-random.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/guest-random.c')
-rw-r--r--util/guest-random.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/guest-random.c b/util/guest-random.c
index a24d27624c..9465dda085 100644
--- a/util/guest-random.c
+++ b/util/guest-random.c
@@ -89,8 +89,8 @@ void qemu_guest_random_seed_thread_part2(uint64_t seed)
int qemu_guest_random_seed_main(const char *optarg, Error **errp)
{
- unsigned long long seed;
- if (parse_uint_full(optarg, &seed, 0)) {
+ uint64_t seed;
+ if (parse_uint_full(optarg, 0, &seed)) {
error_setg(errp, "Invalid seed number: %s", optarg);
return -1;
} else {