]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
VMCI: Fix signedness errors
authorVMware, Inc <>
Wed, 24 Feb 2010 21:11:36 +0000 (13:11 -0800)
committerMarcelo Vanzin <mvanzin@vmware.com>
Wed, 24 Feb 2010 21:11:36 +0000 (13:11 -0800)
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 <mvanzin@vmware.com>
open-vm-tools/modules/linux/shared/vmci_defs.h

index d09e9b210140b65368e3fd1fc51a2c38ace7144c..d134b4026104303cc9808b949efe71e070051efa 100644 (file)
@@ -320,7 +320,7 @@ typedef struct VMCIDsRequestHeader {
    int32       msgid;
    VMCIHandle  handle;
    int32       nameLen;
-   int8        name[1];   
+   char        name[1];
 } VMCIDsRequestHeader;