From: VMware, Inc <> Date: Wed, 24 Feb 2010 21:11:36 +0000 (-0800) Subject: VMCI: Fix signedness errors X-Git-Tag: 2010.02.23-236320~54 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fbf74b8aa806387e7fe4e2fc80041bb94a69be80;p=thirdparty%2Fopen-vm-tools.git VMCI: Fix signedness errors When compiling with never compilers vmci causes the following errors to be reported: .../vmcrosstalk/common/vmciDs.c: In function "DsHandleMessage": .../vmcrosstalk/common/vmciDs.c:211: warning: pointer targets in passing argument 1 of "DsLookupAction" differ in signedness Fix it by changing name in from int8[] to char[] and making DsHandleMessage take size_t for "outSize" and "written". Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/modules/linux/shared/vmci_defs.h b/open-vm-tools/modules/linux/shared/vmci_defs.h index d09e9b210..d134b4026 100644 --- a/open-vm-tools/modules/linux/shared/vmci_defs.h +++ b/open-vm-tools/modules/linux/shared/vmci_defs.h @@ -320,7 +320,7 @@ typedef struct VMCIDsRequestHeader { int32 msgid; VMCIHandle handle; int32 nameLen; - int8 name[1]; + char name[1]; } VMCIDsRequestHeader;