[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-119-g2df8252

Jeremy Allison jra at samba.org
Fri Oct 26 01:30:32 GMT 2007


The branch, v3-2-test has been updated
       via  2df8252ff76406bfe57cd76e9927b5056e89e6ae (commit)
      from  17ea899f39e80241afa235cb933695ba6bae846a (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit 2df8252ff76406bfe57cd76e9927b5056e89e6ae
Author: Jeremy Allison <jra at samba.org>
Date:   Thu Oct 25 18:29:49 2007 -0700

    Fix a mismatched interface where we were using
    uint32 instead of enum lsa_SidType.
    Jeremy.

-----------------------------------------------------------------------

Summary of changes:
 source/rpc_client/cli_lsarpc.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/rpc_client/cli_lsarpc.c b/source/rpc_client/cli_lsarpc.c
index 916b57b..a92031d 100644
--- a/source/rpc_client/cli_lsarpc.c
+++ b/source/rpc_client/cli_lsarpc.c
@@ -139,7 +139,7 @@ static NTSTATUS rpccli_lsa_lookup_sids_noalloc(struct rpc_pipe_client *cli,
 					       const DOM_SID *sids,
 					       char **domains,
 					       char **names,
-					       uint32 *types)
+					       enum lsa_SidType *types)
 {
 	prs_struct qbuf, rbuf;
 	LSA_Q_LOOKUP_SIDS q;
@@ -252,7 +252,7 @@ NTSTATUS rpccli_lsa_lookup_sids(struct rpc_pipe_client *cli,
 				const DOM_SID *sids,
 				char ***domains,
 				char ***names,
-				uint32 **types)
+				enum lsa_SidType **types)
 {
 	NTSTATUS result = NT_STATUS_OK;
 	int sids_left = 0;
@@ -260,7 +260,7 @@ NTSTATUS rpccli_lsa_lookup_sids(struct rpc_pipe_client *cli,
 	const DOM_SID *hunk_sids = sids;
 	char **hunk_domains = NULL;
 	char **hunk_names = NULL;
-	uint32 *hunk_types = NULL;
+	enum lsa_SidType *hunk_types = NULL;
 
 	if (num_sids) {
 		if (!((*domains) = TALLOC_ARRAY(mem_ctx, char *, num_sids))) {
@@ -359,7 +359,7 @@ NTSTATUS rpccli_lsa_lookup_names(struct rpc_pipe_client *cli,
 				 const char ***dom_names,
 				 int level,
 				 DOM_SID **sids,
-				 uint32 **types)
+				 enum lsa_SidType **types)
 {
 	prs_struct qbuf, rbuf;
 	LSA_Q_LOOKUP_NAMES q;
@@ -407,7 +407,7 @@ NTSTATUS rpccli_lsa_lookup_names(struct rpc_pipe_client *cli,
 			goto done;
 		}
 
-		if (!((*types = TALLOC_ARRAY(mem_ctx, uint32, num_names)))) {
+		if (!((*types = TALLOC_ARRAY(mem_ctx, enum lsa_SidType, num_names)))) {
 			DEBUG(0, ("cli_lsa_lookup_sids(): out of memory\n"));
 			result = NT_STATUS_NO_MEMORY;
 			goto done;


-- 
Samba Shared Repository


More information about the samba-cvs mailing list