summaryrefslogtreecommitdiff
path: root/source4/lib/tdb/tools
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-08-24 09:47:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:16:41 -0500
commit39b2377f902f771dca8329b8b9ed1743ae0247a7 (patch)
tree1db5062430d822c585e3d5fbdc93cccc6708e02e /source4/lib/tdb/tools
parente996cd557190b22149719bb0e9e77b95029d51b8 (diff)
downloadsamba-39b2377f902f771dca8329b8b9ed1743ae0247a7.tar.gz
samba-39b2377f902f771dca8329b8b9ed1743ae0247a7.tar.bz2
samba-39b2377f902f771dca8329b8b9ed1743ae0247a7.zip
r17781: fix compiler warning
metze (This used to be commit bbe641f23676961972ac337304ece1116b0219b6)
Diffstat (limited to 'source4/lib/tdb/tools')
-rw-r--r--source4/lib/tdb/tools/tdbtorture.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/lib/tdb/tools/tdbtorture.c b/source4/lib/tdb/tools/tdbtorture.c
index d88211c4a7..9b0a60348c 100644
--- a/source4/lib/tdb/tools/tdbtorture.c
+++ b/source4/lib/tdb/tools/tdbtorture.c
@@ -2,9 +2,8 @@
writers - that stresses the locking code.
*/
-#define _GNU_SOURCE
-
#ifndef _SAMBA_BUILD_
+#define _GNU_SOURCE
#include <stdlib.h>
#include <time.h>
#include <stdio.h>
@@ -46,7 +45,6 @@
#define CULL_PROB 100
#define KEYLEN 3
#define DATALEN 100
-#define LOCKLEN 20
static struct tdb_context *db;
static int in_transaction;