summaryrefslogtreecommitdiff
path: root/source3/torture/locktest.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/torture/locktest.c')
-rw-r--r--source3/torture/locktest.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/torture/locktest.c b/source3/torture/locktest.c
index c3200ca038..31fd0225f8 100644
--- a/source3/torture/locktest.c
+++ b/source3/torture/locktest.c
@@ -36,6 +36,9 @@ static unsigned min_length = 0;
static BOOL exact_error_codes;
static BOOL zero_zero;
+extern char *optarg;
+extern int optind;
+
#define FILENAME "\\locktest.dat"
#define READ_PCT 50
@@ -581,8 +584,6 @@ static void usage(void)
int main(int argc,char *argv[])
{
char *share[NSERVERS];
- extern char *optarg;
- extern int optind;
int opt;
char *p;
int seed, server;