[SCM] Samba Shared Repository - branch master updated
Michael Adam
obnox at samba.org
Mon Feb 7 11:25:01 MST 2011
The branch, master has been updated
via 1d58fcc libcli/security: Make add_sid_to_array_unique use a uin32_t counter
via 91a56b4 libcli/security: Make del_sid_from_array take a uint32_t
via 3bccd2f s3:net conf: fix a comment typo
from 4a558ca script/autobuild.py: git diff has a '--stat' option, no need to use 'diffstat'
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 1d58fcc9259d929093d381f0bd6690345e7c8040
Author: Volker Lendecke <vl at samba.org>
Date: Thu Feb 3 05:23:50 2011 -0700
libcli/security: Make add_sid_to_array_unique use a uin32_t counter
Logical consequence of the previous commit
Signed-off-by: Michael Adam <obnox at samba.org>
Autobuild-User: Michael Adam <obnox at samba.org>
Autobuild-Date: Mon Feb 7 19:24:19 CET 2011 on sn-devel-104
commit 91a56b420a7a6f71d69b0bb88143748d834d4a80
Author: Volker Lendecke <vl at samba.org>
Date: Thu Feb 3 05:22:36 2011 -0700
libcli/security: Make del_sid_from_array take a uint32_t
This aligns it with add_sid_to_array
Signed-off-by: Michael Adam <obnox at samba.org>
commit 3bccd2f3f365d5b8f227d0ddf9397921c1622c44
Author: Michael Adam <obnox at samba.org>
Date: Mon Feb 7 13:30:11 2011 +0100
s3:net conf: fix a comment typo
-----------------------------------------------------------------------
Summary of changes:
libcli/security/dom_sid.h | 3 ++-
libcli/security/util_sid.c | 7 ++++---
source3/utils/net_conf.c | 2 +-
3 files changed, 7 insertions(+), 5 deletions(-)
Changeset truncated at 500 lines:
diff --git a/libcli/security/dom_sid.h b/libcli/security/dom_sid.h
index 8d59b18..c65471b 100644
--- a/libcli/security/dom_sid.h
+++ b/libcli/security/dom_sid.h
@@ -89,7 +89,8 @@ NTSTATUS add_sid_to_array(TALLOC_CTX *mem_ctx, const struct dom_sid *sid,
struct dom_sid **sids, uint32_t *num);
NTSTATUS add_sid_to_array_unique(TALLOC_CTX *mem_ctx, const struct dom_sid *sid,
struct dom_sid **sids, uint32_t *num_sids);
-void del_sid_from_array(const struct dom_sid *sid, struct dom_sid **sids, size_t *num);
+void del_sid_from_array(const struct dom_sid *sid, struct dom_sid **sids,
+ uint32_t *num);
bool add_rid_to_array_unique(TALLOC_CTX *mem_ctx,
uint32_t rid, uint32_t **pp_rids, size_t *p_num);
bool is_null_sid(const struct dom_sid *sid);
diff --git a/libcli/security/util_sid.c b/libcli/security/util_sid.c
index 3d14536..535e81c 100644
--- a/libcli/security/util_sid.c
+++ b/libcli/security/util_sid.c
@@ -310,7 +310,7 @@ NTSTATUS add_sid_to_array(TALLOC_CTX *mem_ctx, const struct dom_sid *sid,
NTSTATUS add_sid_to_array_unique(TALLOC_CTX *mem_ctx, const struct dom_sid *sid,
struct dom_sid **sids, uint32_t *num_sids)
{
- size_t i;
+ uint32_t i;
for (i=0; i<(*num_sids); i++) {
if (dom_sid_compare(sid, &(*sids)[i]) == 0)
@@ -324,10 +324,11 @@ NTSTATUS add_sid_to_array_unique(TALLOC_CTX *mem_ctx, const struct dom_sid *sid,
Remove SID from an array
********************************************************************/
-void del_sid_from_array(const struct dom_sid *sid, struct dom_sid **sids, size_t *num)
+void del_sid_from_array(const struct dom_sid *sid, struct dom_sid **sids,
+ uint32_t *num)
{
struct dom_sid *sid_list = *sids;
- size_t i;
+ uint32_t i;
for ( i=0; i<*num; i++ ) {
diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c
index 58e8cad..9e536b7 100644
--- a/source3/utils/net_conf.c
+++ b/source3/utils/net_conf.c
@@ -398,7 +398,7 @@ static int net_conf_import(struct net_context *c, struct smbconf_ctx *conf_ctx,
/*
* Wrap the importing of shares into a transaction,
- * but only 100 at a time, in order to serve memory.
+ * but only 100 at a time, in order to save memory.
* The allocated memory accumulates across the actions
* within the transaction, and for me, some 1500
* imported shares, the MAX_TALLOC_SIZE of 256 MB
--
Samba Shared Repository
More information about the samba-cvs
mailing list