]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Fix a const warning
authorVolker Lendecke <vl@samba.org>
Sun, 25 May 2008 11:44:35 +0000 (13:44 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 25 May 2008 11:53:44 +0000 (13:53 +0200)
Jelmer, would it be possible to make the rpc client functions take const
pointers for pure [in] arguments?

source/rpc_client/cli_pipe.c

index cec2797a732e248ff56ba334b3e5db6598713e5b..8ba79d3c6d6497739b3f99087122444c69ead761 100644 (file)
@@ -2654,7 +2654,8 @@ static NTSTATUS rpc_pipe_get_tcp_port(const char *host,
 
        status = rpccli_epm_Map(epm_pipe,
                                tmp_ctx,
-                               &(abstract_syntax->uuid),
+                               CONST_DISCARD(struct GUID *,
+                                             &(abstract_syntax->uuid)),
                                map_tower,
                                entry_handle,
                                max_towers,