A socket (as any other file descriptor) is of type "int" to catch the negative error cases. Fix the declaration to allow errors to be detected. Found and needed by clang.
Signed-off-by: Andre Przywara <andre.przyw...@arm.com> --- kvm-ipc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kvm-ipc.c b/kvm-ipc.c index b1c43dd..a289d4b 100644 --- a/kvm-ipc.c +++ b/kvm-ipc.c @@ -34,7 +34,7 @@ static pthread_t thread; static int kvm__create_socket(struct kvm *kvm) { char full_name[PATH_MAX]; - unsigned int s; + int s; struct sockaddr_un local; int len, r; -- 2.3.5 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html