diff options
Diffstat (limited to 'source4/torture/raw')
-rw-r--r-- | source4/torture/raw/acls.c | 10 | ||||
-rw-r--r-- | source4/torture/raw/qfileinfo.c | 4 | ||||
-rw-r--r-- | source4/torture/raw/read.c | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/source4/torture/raw/acls.c b/source4/torture/raw/acls.c index ebad7568c4..65d6b62cf7 100644 --- a/source4/torture/raw/acls.c +++ b/source4/torture/raw/acls.c @@ -962,10 +962,10 @@ static BOOL test_inheritance(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) const char *fname1 = BASEDIR "\\inheritance\\testfile"; const char *fname2 = BASEDIR "\\inheritance\\testdir"; BOOL ret = True; - int fnum, fnum2, i; + int fnum=0, fnum2, i; union smb_fileinfo q; union smb_setfileinfo set; - struct security_descriptor *sd, *sd2, *sd_orig, *sd_def; + struct security_descriptor *sd, *sd2, *sd_orig=NULL, *sd_def; const char *owner_sid; const struct dom_sid *creator_owner; const struct { @@ -1384,10 +1384,10 @@ static BOOL test_inheritance_dynamic(struct smbcli_state *cli, TALLOC_CTX *mem_c const char *dname = BASEDIR "\\inheritance"; const char *fname1 = BASEDIR "\\inheritance\\testfile"; BOOL ret = True; - int fnum, fnum2; + int fnum=0, fnum2; union smb_fileinfo q; union smb_setfileinfo set; - struct security_descriptor *sd, *sd_orig; + struct security_descriptor *sd, *sd_orig=NULL; const char *owner_sid; printf("TESTING DYNAMIC ACL INHERITANCE\n"); @@ -1554,7 +1554,7 @@ static BOOL test_sd_get_set(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) struct security_descriptor *sd_group = NULL; struct security_descriptor *sd_dacl = NULL; struct security_descriptor *sd_sacl = NULL; - int fnum; + int fnum=0; const char *fname = BASEDIR "\\sd_get_set.txt"; uint64_t desired_64; uint32_t desired = 0, granted; diff --git a/source4/torture/raw/qfileinfo.c b/source4/torture/raw/qfileinfo.c index 7998fcf501..d7199972ca 100644 --- a/source4/torture/raw/qfileinfo.c +++ b/source4/torture/raw/qfileinfo.c @@ -605,8 +605,8 @@ BOOL torture_raw_qfileinfo(struct torture_context *torture) if (s2->all_info.out.ea_size != ea_list_size(s1->all_eas.out.num_eas, s1->all_eas.out.eas)) { printf("ERROR: ea_list_size=%d != fnum all_info.out.ea_size=%d\n", - ea_list_size(s1->all_eas.out.num_eas, s1->all_eas.out.eas), - s2->all_info.out.ea_size); + (int)ea_list_size(s1->all_eas.out.num_eas, s1->all_eas.out.eas), + (int)s2->all_info.out.ea_size); } } } diff --git a/source4/torture/raw/read.c b/source4/torture/raw/read.c index 1e73259dec..ef99eb0103 100644 --- a/source4/torture/raw/read.c +++ b/source4/torture/raw/read.c @@ -725,7 +725,7 @@ static BOOL test_read_for_execute(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) union smb_read rd; NTSTATUS status; BOOL ret = True; - int fnum; + int fnum=0; uint8_t *buf; const int maxsize = 900; const char *fname = BASEDIR "\\test.txt"; |