]> git.proxmox.com Git - qemu.git/commit
qcow2: Use better type for numerical snapshot ID
authorMax Reitz <mreitz@redhat.com>
Wed, 9 Oct 2013 12:42:47 +0000 (14:42 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 11 Oct 2013 14:50:00 +0000 (16:50 +0200)
commit00c49b21e7af1dd8d2167c1b019619ac186dad14
tree04c2d5dbc1cd0a15e143ec8fe7bc6e40a7b76353
parent84757f7e67cda3df8b04e06fbdeecc266415d2f3
qcow2: Use better type for numerical snapshot ID

When trying to find a new snapshot ID, the existing ones are converted
to integers using strtoul. This function returns an unsigned long,
therefore its result should be saved in an unsigned long as well.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-snapshot.c