Commit 82a042d0 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

rpcrt4/tests: Cast-qual warnings fix.

parent df9715b1
...@@ -605,7 +605,7 @@ static void test_CreateStub(IPSFactoryBuffer *ppsf) ...@@ -605,7 +605,7 @@ static void test_CreateStub(IPSFactoryBuffer *ppsf)
IUnknown *obj = (IUnknown*)&vtbl; IUnknown *obj = (IUnknown*)&vtbl;
IRpcStubBuffer *pstub = create_stub(ppsf, &IID_if1, obj, S_OK); IRpcStubBuffer *pstub = create_stub(ppsf, &IID_if1, obj, S_OK);
CStdStubBuffer *cstd_stub = (CStdStubBuffer*)pstub; 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(IsEqualIID(header->piid, &IID_if1), "header iid differs\n");
ok(cstd_stub->RefCount == 1, "ref count %d\n", cstd_stub->RefCount); ok(cstd_stub->RefCount == 1, "ref count %d\n", cstd_stub->RefCount);
......
...@@ -224,7 +224,7 @@ todo_wine { ...@@ -224,7 +224,7 @@ todo_wine {
static int deref_cmp(const void *s1, const void *s2, size_t num) 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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment