diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-07-10 11:37:30 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:59:21 -0500 |
commit | a87dea2a0894015cf4a3140995791f5468c40038 (patch) | |
tree | 476f460bcf834519d935fca57ea3b42d0eb858b0 /source4/torture/basic | |
parent | 69c0923c5ea02cd89c5465023692927d30043676 (diff) | |
download | samba-a87dea2a0894015cf4a3140995791f5468c40038.tar.gz samba-a87dea2a0894015cf4a3140995791f5468c40038.tar.bz2 samba-a87dea2a0894015cf4a3140995791f5468c40038.zip |
r23810: Make things static, and remove unsued code.
This includes some of the original ildap ldap client API. ldb
provides a much easier abstraction on this to use, and doesn't use
these functions.
Andrew Bartlett
(This used to be commit dc27a7e41c297472675e8c251bb14327a1af3902)
Diffstat (limited to 'source4/torture/basic')
-rw-r--r-- | source4/torture/basic/locking.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/source4/torture/basic/locking.c b/source4/torture/basic/locking.c index 5570af17d6..aa3168fb08 100644 --- a/source4/torture/basic/locking.c +++ b/source4/torture/basic/locking.c @@ -38,9 +38,9 @@ must not use posix semantics) 2) support for lock timeouts */ -bool torture_locktest1(struct torture_context *tctx, - struct smbcli_state *cli1, - struct smbcli_state *cli2) +static bool torture_locktest1(struct torture_context *tctx, + struct smbcli_state *cli1, + struct smbcli_state *cli2) { const char *fname = BASEDIR "\\lockt1.lck"; int fnum1, fnum2, fnum3; @@ -159,8 +159,8 @@ bool torture_locktest1(struct torture_context *tctx, 3) the server denies unlock requests by an incorrect client PID */ -bool torture_locktest2(struct torture_context *tctx, - struct smbcli_state *cli) +static bool torture_locktest2(struct torture_context *tctx, + struct smbcli_state *cli) { const char *fname = BASEDIR "\\lockt2.lck"; int fnum1, fnum2, fnum3; @@ -271,9 +271,9 @@ bool torture_locktest2(struct torture_context *tctx, 1) the server supports the full offset range in lock requests */ -bool torture_locktest3(struct torture_context *tctx, - struct smbcli_state *cli1, - struct smbcli_state *cli2) +static bool torture_locktest3(struct torture_context *tctx, + struct smbcli_state *cli1, + struct smbcli_state *cli2) { const char *fname = BASEDIR "\\lockt3.lck"; int fnum1, fnum2, i; @@ -368,9 +368,9 @@ bool torture_locktest3(struct torture_context *tctx, /* looks at overlapping locks */ -BOOL torture_locktest4(struct torture_context *tctx, - struct smbcli_state *cli1, - struct smbcli_state *cli2) +static bool torture_locktest4(struct torture_context *tctx, + struct smbcli_state *cli1, + struct smbcli_state *cli2) { const char *fname = BASEDIR "\\lockt4.lck"; int fnum1, fnum2, f; @@ -530,8 +530,8 @@ BOOL torture_locktest4(struct torture_context *tctx, /* looks at lock upgrade/downgrade. */ -BOOL torture_locktest5(struct torture_context *tctx, struct smbcli_state *cli1, - struct smbcli_state *cli2) +static bool torture_locktest5(struct torture_context *tctx, struct smbcli_state *cli1, + struct smbcli_state *cli2) { const char *fname = BASEDIR "\\lockt5.lck"; int fnum1, fnum2, fnum3; @@ -635,8 +635,8 @@ ret = NT_STATUS_IS_OK(smbcli_unlock(cli1->tree, fnum1, 0, 4)) && /* tries the unusual lockingX locktype bits */ -BOOL torture_locktest6(struct torture_context *tctx, - struct smbcli_state *cli) +static bool torture_locktest6(struct torture_context *tctx, + struct smbcli_state *cli) { const char *fname[1] = { "\\lock6.txt" }; int i; @@ -668,8 +668,8 @@ BOOL torture_locktest6(struct torture_context *tctx, return True; } -BOOL torture_locktest7(struct torture_context *tctx, - struct smbcli_state *cli1) +static bool torture_locktest7(struct torture_context *tctx, + struct smbcli_state *cli1) { const char *fname = BASEDIR "\\lockt7.lck"; int fnum1; |