mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
util: Drop unused variable num_received
clang complains: ../../source4/libcli/clilist.c:111:6: error: variable 'num_received' set but not used [-Werror,-Wunused-but-set-variable] int num_received = 0; ^ ../../source4/libcli/clilist.c:268:6: error: variable 'num_received' set but not used [-Werror,-Wunused-but-set-variable] int num_received = 0; ^ That is, the variable is initialised and updated but the value is never used. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
fb55d84ebb
commit
32d2584c23
@ -108,7 +108,6 @@ int smbcli_list_new(struct smbcli_tree *tree, const char *Mask, uint16_t attribu
|
||||
struct search_private state; /* for callbacks */
|
||||
int received = 0;
|
||||
bool first = true;
|
||||
int num_received = 0;
|
||||
int max_matches = 512;
|
||||
char *mask;
|
||||
int ff_eos = 0, i;
|
||||
@ -185,8 +184,6 @@ int smbcli_list_new(struct smbcli_tree *tree, const char *Mask, uint16_t attribu
|
||||
if (received <= 0) break;
|
||||
if (ff_eos) break;
|
||||
}
|
||||
|
||||
num_received += received;
|
||||
}
|
||||
|
||||
for (i=0;i<state.total_received;i++) {
|
||||
@ -265,7 +262,6 @@ int smbcli_list_old(struct smbcli_tree *tree, const char *Mask, uint16_t attribu
|
||||
const int num_asked = 500;
|
||||
int received = 0;
|
||||
bool first = true;
|
||||
int num_received = 0;
|
||||
char *mask;
|
||||
int i;
|
||||
|
||||
@ -327,8 +323,6 @@ int smbcli_list_old(struct smbcli_tree *tree, const char *Mask, uint16_t attribu
|
||||
received = next_parms.search_next.out.count;
|
||||
if (received <= 0) break;
|
||||
}
|
||||
|
||||
num_received += received;
|
||||
}
|
||||
|
||||
for (i=0;i<state.total_received;i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user