r17781: fix compiler warning
authorStefan Metzmacher <metze@samba.org>
Thu, 24 Aug 2006 09:47:51 +0000 (09:47 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:16:41 +0000 (14:16 -0500)
metze
(This used to be commit bbe641f23676961972ac337304ece1116b0219b6)

source4/lib/tdb/tools/tdbtorture.c

index d88211c4a72e67a757e724f1139a6a79de9c70ce..9b0a60348c8d41bfbee7626b1bd174f966be6d10 100644 (file)
@@ -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;