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:
parent
880dd3538e
commit
32cfd7c8df
@ -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++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user