diff options
author | Volker Lendecke <vlendec@samba.org> | 2005-06-25 09:07:42 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2005-06-25 09:07:42 +0000 |
commit | f167a319c877251f70ec6ac29d938e017b8041cc (patch) | |
tree | cc533bfd234ea6c9594ca560e5838caaa69e26d2 /source/torture | |
parent | 80d91655d42433cb895c8ad26938fbf72970c008 (diff) | |
download | samba-f167a319c877251f70ec6ac29d938e017b8041cc.tar.gz samba-f167a319c877251f70ec6ac29d938e017b8041cc.tar.xz samba-f167a319c877251f70ec6ac29d938e017b8041cc.zip |
r7902: Fix the build
Diffstat (limited to 'source/torture')
-rw-r--r-- | source/torture/cmd_vfs.c | 4 | ||||
-rw-r--r-- | source/torture/nbio.c | 2 | ||||
-rw-r--r-- | source/torture/torture.c | 14 |
3 files changed, 10 insertions, 10 deletions
diff --git a/source/torture/cmd_vfs.c b/source/torture/cmd_vfs.c index 132e0776aba..2c977485449 100644 --- a/source/torture/cmd_vfs.c +++ b/source/torture/cmd_vfs.c @@ -129,7 +129,7 @@ static NTSTATUS cmd_opendir(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc return NT_STATUS_OK; } - vfs->currentdir = SMB_VFS_OPENDIR(vfs->conn, argv[1]); + vfs->currentdir = SMB_VFS_OPENDIR(vfs->conn, argv[1], NULL, 0); if (vfs->currentdir == NULL) { printf("opendir error=%d (%s)\n", errno, strerror(errno)); return NT_STATUS_UNSUCCESSFUL; @@ -142,7 +142,7 @@ static NTSTATUS cmd_opendir(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc static NTSTATUS cmd_readdir(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) { - struct dirent *dent; + SMB_STRUCT_DIRENT *dent; if (vfs->currentdir == NULL) { printf("readdir: error=-1 (no open directory)\n"); diff --git a/source/torture/nbio.c b/source/torture/nbio.c index 16e0b4a191a..e00fce02dbc 100644 --- a/source/torture/nbio.c +++ b/source/torture/nbio.c @@ -232,7 +232,7 @@ void nb_rename(const char *oldname, const char *newname) { if (!cli_rename(c, oldname, newname)) { printf("ERROR: rename %s %s failed (%s)\n", - old, new, cli_errstr(c)); + oldname, newname, cli_errstr(c)); exit(1); } } diff --git a/source/torture/torture.c b/source/torture/torture.c index ef9497d9ad9..f59da14b795 100644 --- a/source/torture/torture.c +++ b/source/torture/torture.c @@ -210,16 +210,16 @@ static BOOL check_error(int line, struct cli_state *c, uint8 eclass, uint32 ecode, NTSTATUS nterr) { if (cli_is_dos_error(c)) { - uint8 class; + uint8 cclass; uint32 num; /* Check DOS error */ - cli_dos_error(c, &class, &num); + cli_dos_error(c, &cclass, &num); - if (eclass != class || ecode != num) { + if (eclass != cclass || ecode != num) { printf("unexpected error code class=%d code=%d\n", - (int)class, (int)num); + (int)cclass, (int)num); printf(" expected %d/%d %s (line=%d)\n", (int)eclass, (int)ecode, nt_errstr(nterr), line); return False; @@ -2114,7 +2114,7 @@ test how many open files this server supports on the one socket static BOOL run_maxfidtest(int dummy) { struct cli_state *cli; - const char *template = "\\maxfid.%d.%d"; + const char *ftemplate = "\\maxfid.%d.%d"; fstring fname; int fnums[0x11000], i; int retries=4; @@ -2130,7 +2130,7 @@ static BOOL run_maxfidtest(int dummy) cli_sockopt(cli, sockops); for (i=0; i<0x11000; i++) { - slprintf(fname,sizeof(fname)-1,template, i,(int)getpid()); + slprintf(fname,sizeof(fname)-1,ftemplate, i,(int)getpid()); if ((fnums[i] = cli_open(cli, fname, O_RDWR|O_CREAT|O_TRUNC, DENY_NONE)) == -1) { @@ -2146,7 +2146,7 @@ static BOOL run_maxfidtest(int dummy) printf("cleaning up\n"); for (;i>=0;i--) { - slprintf(fname,sizeof(fname)-1,template, i,(int)getpid()); + slprintf(fname,sizeof(fname)-1,ftemplate, i,(int)getpid()); cli_close(cli, fnums[i]); if (!cli_unlink(cli, fname)) { printf("unlink of %s failed (%s)\n", |