mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s4:libnet - change variables to "unsigned" where needed
This commit is contained in:
parent
af72a63cff
commit
ec6843402c
@ -1116,7 +1116,7 @@ static void continue_samr_close_handle(struct rpc_request *req)
|
||||
*/
|
||||
static struct domainlist* get_domain_list(TALLOC_CTX *mem_ctx, struct domain_list_state *s)
|
||||
{
|
||||
int i;
|
||||
uint32_t i;
|
||||
if (mem_ctx == NULL || s == NULL) return NULL;
|
||||
|
||||
/* prepare domains array */
|
||||
|
@ -624,7 +624,7 @@ static void continue_groups_enumerated(struct rpc_request *req)
|
||||
{
|
||||
struct composite_context *c;
|
||||
struct grouplist_state *s;
|
||||
int i;
|
||||
uint32_t i;
|
||||
|
||||
c = talloc_get_type(req->async.private_data, struct composite_context);
|
||||
s = talloc_get_type(c->private_data, struct grouplist_state);
|
||||
|
@ -289,7 +289,7 @@ static NTSTATUS libnet_JoinADSDomain(struct libnet_context *ctx, struct libnet_J
|
||||
msg->dn = res->msgs[0]->dn;
|
||||
|
||||
{
|
||||
int i;
|
||||
unsigned int i;
|
||||
const char *service_principal_name[6];
|
||||
const char *dns_host_name = strlower_talloc(tmp_ctx,
|
||||
talloc_asprintf(tmp_ctx,
|
||||
|
@ -463,7 +463,7 @@ static NTSTATUS libnet_SetPassword_samr_handle(struct libnet_context *ctx, TALLO
|
||||
LIBNET_SET_PASSWORD_SAMR_HANDLE_24,
|
||||
LIBNET_SET_PASSWORD_SAMR_HANDLE_23,
|
||||
};
|
||||
int i;
|
||||
unsigned int i;
|
||||
|
||||
for (i=0; i < ARRAY_SIZE(levels); i++) {
|
||||
r->generic.level = levels[i];
|
||||
|
@ -45,7 +45,7 @@ NTSTATUS libnet_SamSync_netlogon(struct libnet_context *ctx, TALLOC_CTX *mem_ctx
|
||||
struct libnet_RpcConnect *c;
|
||||
struct libnet_SamSync_state *state;
|
||||
const enum netr_SamDatabaseID database_ids[] = {SAM_DATABASE_DOMAIN, SAM_DATABASE_BUILTIN, SAM_DATABASE_PRIVS};
|
||||
int i;
|
||||
unsigned int i;
|
||||
|
||||
samsync_ctx = talloc_named(mem_ctx, 0, "SamSync top context");
|
||||
|
||||
@ -209,7 +209,7 @@ NTSTATUS libnet_SamSync_netlogon(struct libnet_context *ctx, TALLOC_CTX *mem_ctx
|
||||
dbsync.out.sync_context = &sync_context;
|
||||
|
||||
do {
|
||||
int d;
|
||||
uint32_t d;
|
||||
loop_ctx = talloc_named(samsync_ctx, 0, "DatabaseSync loop context");
|
||||
netlogon_creds_client_authenticator(creds, &credential);
|
||||
|
||||
|
@ -245,7 +245,8 @@ static NTSTATUS samsync_ldb_handle_user(TALLOC_CTX *mem_ctx,
|
||||
struct ldb_message *msg;
|
||||
struct ldb_message **msgs;
|
||||
struct ldb_message **remote_msgs = NULL;
|
||||
int ret, i;
|
||||
unsigned int i;
|
||||
int ret;
|
||||
uint32_t acb;
|
||||
bool add = false;
|
||||
const char *attrs[] = { NULL };
|
||||
@ -658,7 +659,7 @@ static NTSTATUS samsync_ldb_handle_group_member(TALLOC_CTX *mem_ctx,
|
||||
struct ldb_message **msgs;
|
||||
int ret;
|
||||
const char *attrs[] = { NULL };
|
||||
int i;
|
||||
uint32_t i;
|
||||
|
||||
msg = ldb_msg_new(mem_ctx);
|
||||
if (msg == NULL) {
|
||||
@ -867,7 +868,7 @@ static NTSTATUS samsync_ldb_handle_alias_member(TALLOC_CTX *mem_ctx,
|
||||
struct ldb_message **msgs;
|
||||
int ret;
|
||||
const char *attrs[] = { NULL };
|
||||
int i;
|
||||
uint32_t i;
|
||||
|
||||
msg = ldb_msg_new(mem_ctx);
|
||||
if (msg == NULL) {
|
||||
@ -948,7 +949,7 @@ static NTSTATUS samsync_ldb_handle_account(TALLOC_CTX *mem_ctx,
|
||||
|
||||
struct ldb_message *msg;
|
||||
int ret;
|
||||
int i;
|
||||
uint32_t i;
|
||||
char *dnstr, *sidstr;
|
||||
|
||||
msg = ldb_msg_new(mem_ctx);
|
||||
|
@ -235,7 +235,7 @@ NTSTATUS libnet_JoinSite(struct libnet_context *ctx,
|
||||
|
||||
rtn = ldb_add(remote_ldb, msg);
|
||||
if (rtn == LDB_ERR_ENTRY_ALREADY_EXISTS) {
|
||||
int i;
|
||||
unsigned int i;
|
||||
|
||||
/* make a 'modify' msg, and only for serverReference */
|
||||
msg = ldb_msg_new(tmp_ctx);
|
||||
|
@ -1088,7 +1088,7 @@ static void continue_users_enumerated(struct rpc_request *req)
|
||||
{
|
||||
struct composite_context *c;
|
||||
struct userlist_state *s;
|
||||
int i;
|
||||
uint32_t i;
|
||||
|
||||
c = talloc_get_type(req->async.private_data, struct composite_context);
|
||||
s = talloc_get_type(c->private_data, struct userlist_state);
|
||||
|
Loading…
Reference in New Issue
Block a user