1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-01 16:23:49 +03:00

r25027: Fix more warnings.

This commit is contained in:
Jelmer Vernooij
2007-09-08 13:27:14 +00:00
committed by Gerald (Jerry) Carter
parent abe8349f9b
commit 5085c53fcf
43 changed files with 122 additions and 103 deletions

View File

@@ -118,7 +118,8 @@ int smbcli_list_new(struct smbcli_tree *tree, const char *Mask, uint16_t attribu
state.dirlist_len = 0;
state.total_received = 0;
state.dirlist = talloc_new(state.mem_ctx);
state.dirlist = talloc_array(state.mem_ctx,
struct clilist_file_info, 0);
mask = talloc_strdup(state.mem_ctx, Mask);
if (level == RAW_SEARCH_DATA_GENERIC) {
@@ -275,7 +276,8 @@ int smbcli_list_old(struct smbcli_tree *tree, const char *Mask, uint16_t attribu
state.total_received = 0;
state.data_level = RAW_SEARCH_DATA_SEARCH;
state.dirlist = talloc_new(state.mem_ctx);
state.dirlist = talloc_array(state.mem_ctx, struct clilist_file_info,
0);
mask = talloc_strdup(state.mem_ctx, Mask);
while (1) {