rpcrt4/tests: Cast-qual warnings fix
Andrew Talbot
Andrew.Talbot at talbotville.com
Wed Dec 13 14:50:37 CST 2006
Changelog:
rpcrt4/tests: Cast-qual warnings fix.
diff -urN a/dlls/rpcrt4/tests/cstub.c b/dlls/rpcrt4/tests/cstub.c
--- a/dlls/rpcrt4/tests/cstub.c 2006-12-11 17:28:38.000000000 +0000
+++ b/dlls/rpcrt4/tests/cstub.c 2006-12-13 20:12:15.000000000 +0000
@@ -605,7 +605,7 @@
IUnknown *obj = (IUnknown*)&vtbl;
IRpcStubBuffer *pstub = create_stub(ppsf, &IID_if1, obj, S_OK);
CStdStubBuffer *cstd_stub = (CStdStubBuffer*)pstub;
- CInterfaceStubHeader *header = ((CInterfaceStubHeader *)cstd_stub->lpVtbl) - 1;
+ const CInterfaceStubHeader *header = ((const CInterfaceStubHeader *)cstd_stub->lpVtbl) - 1;
ok(IsEqualIID(header->piid, &IID_if1), "header iid differs\n");
ok(cstd_stub->RefCount == 1, "ref count %d\n", cstd_stub->RefCount);
diff -urN a/dlls/rpcrt4/tests/ndr_marshall.c b/dlls/rpcrt4/tests/ndr_marshall.c
--- a/dlls/rpcrt4/tests/ndr_marshall.c 2006-12-11 17:28:38.000000000 +0000
+++ b/dlls/rpcrt4/tests/ndr_marshall.c 2006-12-13 20:24:08.000000000 +0000
@@ -224,7 +224,7 @@
static int deref_cmp(const void *s1, const void *s2, size_t num)
{
- return memcmp(*(void**)s1, *(void**)s2, num);
+ return memcmp(*(const void *const *)s1, *(const void *const *)s2, num);
}
More information about the wine-patches
mailing list