commit | 3872425343439555e543cd606c44a79dbcc168d4 | [log] [tgz] |
---|---|---|
author | Blue Swirl <blauwirbel@gmail.com> | Sat Sep 18 05:53:14 2010 +0000 |
committer | Blue Swirl <blauwirbel@gmail.com> | Sat Sep 18 05:53:14 2010 +0000 |
tree | 496137982866b606182dc739f64512e5ac477ecb | |
parent | 093209cd681fe9fb65bd8a1c2ff711b8168bbfcd [diff] |
linux-user: fix socklen_t comparisons 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 <blauwirbel@gmail.com>