1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

s4-torture: fix type of enum in various places

Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Uri Simchoni 2017-11-19 17:54:32 +00:00 committed by Andrew Bartlett
parent 559367ed60
commit 2bf01b286c
3 changed files with 6 additions and 6 deletions

View File

@ -1152,7 +1152,7 @@ static bool test_ResourceTypeControl_int(struct torture_context *tctx,
struct dcerpc_pipe *p,
struct policy_handle *Cluster,
const char *resource_type,
enum clusapi_ClusterControlCode dwControlCode)
enum clusapi_ResourceTypeControlCode dwControlCode)
{
struct dcerpc_binding_handle *b = p->binding_handle;
struct clusapi_ResourceTypeControl r;

View File

@ -2846,7 +2846,7 @@ static bool test_ioctl_compress_set_file_attr(struct torture_context *torture,
"compression attr before set");
ZERO_STRUCT(set_io);
set_io.generic.level = RAW_FILEINFO_BASIC_INFORMATION;
set_io.generic.level = RAW_SFILEINFO_BASIC_INFORMATION;
set_io.basic_info.in.file.handle = fh;
set_io.basic_info.in.create_time = io.basic_info.out.create_time;
set_io.basic_info.in.access_time = io.basic_info.out.access_time;
@ -2885,7 +2885,7 @@ static bool test_ioctl_compress_set_file_attr(struct torture_context *torture,
"compression attr before set");
ZERO_STRUCT(set_io);
set_io.generic.level = RAW_FILEINFO_BASIC_INFORMATION;
set_io.generic.level = RAW_SFILEINFO_BASIC_INFORMATION;
set_io.basic_info.in.file.handle = dirh;
set_io.basic_info.in.create_time = io.basic_info.out.create_time;
set_io.basic_info.in.access_time = io.basic_info.out.access_time;

View File

@ -304,7 +304,7 @@ static bool test_replay_commands(struct torture_context *tctx, struct smb2_tree
CHECK_STATUS(status, NT_STATUS_OK);
qfinfo = (union smb_fileinfo) {
.generic.level = RAW_SFILEINFO_POSITION_INFORMATION,
.generic.level = RAW_FILEINFO_POSITION_INFORMATION,
.generic.in.file.handle = h
};
torture_comment(tctx, "Trying getinfo\n");
@ -1677,7 +1677,7 @@ static bool test_channel_sequence_table(struct torture_context *tctx,
}
qfinfo = (union smb_fileinfo) {
.generic.level = RAW_SFILEINFO_POSITION_INFORMATION,
.generic.level = RAW_FILEINFO_POSITION_INFORMATION,
.generic.in.file.handle = handle
};
@ -2350,7 +2350,7 @@ static bool test_replay6(struct torture_context *tctx, struct smb2_tree *tree)
torture_reset_break_info(tctx, &break_info);
qfinfo = (union smb_fileinfo) {
.generic.level = RAW_SFILEINFO_POSITION_INFORMATION,
.generic.level = RAW_FILEINFO_POSITION_INFORMATION,
.generic.in.file.handle = *h
};
torture_comment(tctx, "Trying getinfo\n");