summaryrefslogtreecommitdiffstats
path: root/migration.c
diff options
context:
space:
mode:
authorStefan Weil2013-10-02 22:40:29 +0200
committerMichael Tokarev2013-10-05 12:01:47 +0200
commitddd23638d7eebd7419148ba8db65f0d53a1920ab (patch)
tree95723aebf918260c8f8099feb719643e73c6550e /migration.c
parenthw/9pfs: Fix errno value for xattr functions (diff)
downloadqemu-ddd23638d7eebd7419148ba8db65f0d53a1920ab.tar.gz
qemu-ddd23638d7eebd7419148ba8db65f0d53a1920ab.tar.xz
qemu-ddd23638d7eebd7419148ba8db65f0d53a1920ab.zip
util/path: Fix type which is longer than 8 bit for MinGW
While dirent->d_type is 8 bit for most systems, it is 32 bit for MinGW. Reducing it to 8 bit results in a compiler warning because the macro is_dir_maybe compares that 8 bit value with 32 bit constants. Using 'unsigned' instead of 'unsigned char' matches the declaration for MinGW and does not harm the other systems. MinGW-w64 is not affected: it does not declare d_type. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'migration.c')
0 files changed, 0 insertions, 0 deletions