[Qemu-devel] [PATCH 02/15] linux-user: fix socklen_t comparisons

2010-09-10 Thread Blue Swirl
On many systems, socklen_t is defined as unsigned. This means that checks for negative values are not meaningful. Fix by explicitly casting to a signed integer. This also avoids some warnings with GCC flag -Wtype-limits. Signed-off-by: Blue Swirl --- linux-user/syscall.c | 20 +--

[Qemu-devel] [PATCH 02/15] linux-user: fix socklen_t comparisons

2010-09-05 Thread Blue Swirl
On many systems, socklen_t is defined as unsigned. This means that checks for negative values are not meaningful. Fix by explicitly casting to a signed integer. This also fixes some warnings with GCC flag -Wtype-limits. Signed-off-by: Blue Swirl --- linux-user/syscall.c | 20 +---