1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r13001: fix compiler warnings

metze
This commit is contained in:
Stefan Metzmacher 2006-01-18 16:01:13 +00:00 committed by Gerald (Jerry) Carter
parent 880dd3538e
commit 32cfd7c8df

View File

@ -2164,7 +2164,7 @@ static int cmd_addprivileges(const char **cmd_ptr)
ZERO_STRUCT(rights); ZERO_STRUCT(rights);
while (next_token(cmd_ptr,buf,NULL,sizeof(buf))) { while (next_token(cmd_ptr,buf,NULL,sizeof(buf))) {
rights.names = talloc_realloc(mem_ctx, rights.names, rights.names = talloc_realloc(mem_ctx, rights.names,
struct lsa_String, rights.count+1); struct lsa_StringLarge, rights.count+1);
rights.names[rights.count].string = talloc_strdup(mem_ctx, buf); rights.names[rights.count].string = talloc_strdup(mem_ctx, buf);
rights.count++; rights.count++;
} }
@ -2214,7 +2214,7 @@ static int cmd_delprivileges(const char **cmd_ptr)
ZERO_STRUCT(rights); ZERO_STRUCT(rights);
while (next_token(cmd_ptr,buf,NULL,sizeof(buf))) { while (next_token(cmd_ptr,buf,NULL,sizeof(buf))) {
rights.names = talloc_realloc(mem_ctx, rights.names, rights.names = talloc_realloc(mem_ctx, rights.names,
struct lsa_String, rights.count+1); struct lsa_StringLarge, rights.count+1);
rights.names[rights.count].string = talloc_strdup(mem_ctx, buf); rights.names[rights.count].string = talloc_strdup(mem_ctx, buf);
rights.count++; rights.count++;
} }