Module: wine Branch: master Commit: 82a042d0df854bdedf1605b7e42d9bdb58f43622 URL: http://source.winehq.org/git/wine.git/?a=commit;h=82a042d0df854bdedf1605b7e4...
Author: Andrew Talbot Andrew.Talbot@talbotville.com Date: Wed Dec 13 20:50:37 2006 +0000
rpcrt4/tests: Cast-qual warnings fix.
---
dlls/rpcrt4/tests/cstub.c | 2 +- dlls/rpcrt4/tests/ndr_marshall.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/rpcrt4/tests/cstub.c b/dlls/rpcrt4/tests/cstub.c index 9cac380..ceed0d0 100644 --- a/dlls/rpcrt4/tests/cstub.c +++ b/dlls/rpcrt4/tests/cstub.c @@ -605,7 +605,7 @@ static void test_CreateStub(IPSFactoryBu 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 --git a/dlls/rpcrt4/tests/ndr_marshall.c b/dlls/rpcrt4/tests/ndr_marshall.c index 3ed9a32..667e86e 100644 --- a/dlls/rpcrt4/tests/ndr_marshall.c +++ b/dlls/rpcrt4/tests/ndr_marshall.c @@ -224,7 +224,7 @@ todo_wine {
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); }