51df4937bf
On ARM, gcc warns (-Werror=type-limits) that it will always be false for the if statement. This is because here s->aid is defined as char, while proxmox_restore_open_image() returns an int. This is probably because chars are treated as unsigned on arm arch but signed on x86 arch: https://developer.arm.com/documentation/den0013/d/Porting/Miscellaneous-C-porting-issues/unsigned-char-and-signed-char Make aid an explicit uint8_t, because that is the type for functions taking the aid as a parameter, e.g. proxmox_restore_get_image_length(). Signed-off-by: Jing Luo <jing@jing.rocks> [FE: slightly improve commit message] Signed-off-by: Fiona Ebner <f.ebner@proxmox.com> |
||
---|---|---|
debian | ||
qemu@c25df57ae8 | ||
.gitignore | ||
.gitmodules | ||
backup.txt | ||
Makefile | ||
vma_spec.txt |