mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
r14980: fixed several IBM checker errors in gentest and masktest
This commit is contained in:
parent
b197bee4f6
commit
98016479a9
@ -656,6 +656,8 @@ static struct ea_struct gen_ea_struct(void)
|
|||||||
"ASOMEWHATLONGERATTRIBUTEVALUE"};
|
"ASOMEWHATLONGERATTRIBUTEVALUE"};
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
ZERO_STRUCT(ea);
|
||||||
|
|
||||||
do {
|
do {
|
||||||
i = gen_int_range(0, ARRAY_SIZE(names)-1);
|
i = gen_int_range(0, ARRAY_SIZE(names)-1);
|
||||||
} while (ignore_pattern(names[i]));
|
} while (ignore_pattern(names[i]));
|
||||||
@ -725,7 +727,6 @@ static void oplock_handler_close_recv(struct smbcli_request *req)
|
|||||||
static BOOL oplock_handler(struct smbcli_transport *transport, uint16_t tid, uint16_t fnum, uint8_t level, void *private)
|
static BOOL oplock_handler(struct smbcli_transport *transport, uint16_t tid, uint16_t fnum, uint8_t level, void *private)
|
||||||
{
|
{
|
||||||
union smb_close io;
|
union smb_close io;
|
||||||
NTSTATUS status;
|
|
||||||
int i, j;
|
int i, j;
|
||||||
BOOL do_close;
|
BOOL do_close;
|
||||||
struct smbcli_tree *tree = NULL;
|
struct smbcli_tree *tree = NULL;
|
||||||
@ -766,8 +767,7 @@ static BOOL oplock_handler(struct smbcli_transport *transport, uint16_t tid, uin
|
|||||||
req = smb_raw_close_send(tree, &io);
|
req = smb_raw_close_send(tree, &io);
|
||||||
|
|
||||||
if (req == NULL) {
|
if (req == NULL) {
|
||||||
printf("WARNING: close failed in oplock_handler_close - %s\n",
|
printf("WARNING: close failed in oplock_handler_close\n");
|
||||||
nt_errstr(status));
|
|
||||||
return False;
|
return False;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1823,6 +1823,7 @@ static BOOL handler_notify(int instance)
|
|||||||
struct smb_notify parm[NSERVERS];
|
struct smb_notify parm[NSERVERS];
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
|
ZERO_STRUCT(parm[0]);
|
||||||
parm[0].in.buffer_size = gen_io_count();
|
parm[0].in.buffer_size = gen_io_count();
|
||||||
parm[0].in.completion_filter = gen_bits_mask(0xFF);
|
parm[0].in.completion_filter = gen_bits_mask(0xFF);
|
||||||
parm[0].in.file.fnum = gen_fnum(instance);
|
parm[0].in.file.fnum = gen_fnum(instance);
|
||||||
|
@ -182,6 +182,8 @@ static void testpair(struct smbcli_state *cli, char *mask, char *file)
|
|||||||
smbcli_unlink(cli->tree, file);
|
smbcli_unlink(cli->tree, file);
|
||||||
|
|
||||||
if (count % 100 == 0) DEBUG(0,("%d\n", count));
|
if (count % 100 == 0) DEBUG(0,("%d\n", count));
|
||||||
|
|
||||||
|
resultp = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void test_mask(int argc, char *argv[],
|
static void test_mask(int argc, char *argv[],
|
||||||
|
Loading…
Reference in New Issue
Block a user