rpcrt4: Cast-qual warnings fix (4 of 4)
Andrew Talbot
Andrew.Talbot at talbotville.com
Mon Sep 25 15:26:52 CDT 2006
Changelog:
rpcrt4: Cast-qual warnings fix.
diff -urN a/dlls/rpcrt4/rpc_transport.c b/dlls/rpcrt4/rpc_transport.c
--- a/dlls/rpcrt4/rpc_transport.c 2006-06-14 12:55:26.000000000 +0100
+++ b/dlls/rpcrt4/rpc_transport.c 2006-09-25 21:07:21.000000000 +0100
@@ -899,8 +899,8 @@
char **networkaddr,
char **endpoint)
{
- twr_empty_floor_t *protocol_floor;
- twr_empty_floor_t *floor4;
+ const twr_empty_floor_t *protocol_floor;
+ const twr_empty_floor_t *floor4;
const struct protseq_ops *protseq_ops = NULL;
RPC_STATUS status;
int i;
@@ -908,7 +908,7 @@
if (tower_size < sizeof(*protocol_floor))
return EPT_S_NOT_REGISTERED;
- protocol_floor = (twr_empty_floor_t *)tower_data;
+ protocol_floor = (const twr_empty_floor_t *)tower_data;
tower_data += sizeof(*protocol_floor);
tower_size -= sizeof(*protocol_floor);
if ((protocol_floor->count_lhs != sizeof(protocol_floor->protid)) ||
@@ -917,7 +917,7 @@
tower_data += protocol_floor->count_rhs;
tower_size -= protocol_floor->count_rhs;
- floor4 = (twr_empty_floor_t *)tower_data;
+ floor4 = (const twr_empty_floor_t *)tower_data;
if ((tower_size < sizeof(*floor4)) ||
(floor4->count_lhs != sizeof(floor4->protid)))
return EPT_S_NOT_REGISTERED;
More information about the wine-patches
mailing list