From 983d841e369eeecf0e2a501dfb9b97dfc367fb8d Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 3 Jul 2001 04:29:50 +0000 Subject: See if we can stick to slightly valid C.. (With thanks to tpot) Andrew Bartlett (This used to be commit e77cfe1379d92d2be4e2895454e14d11311a913d) --- source3/torture/locktest.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/torture/locktest.c b/source3/torture/locktest.c index cee18624a4..ef6c9a978a 100644 --- a/source3/torture/locktest.c +++ b/source3/torture/locktest.c @@ -59,14 +59,16 @@ struct record { char needed; }; +#define PRESETS 0 + +#if PRESETS static struct record preset[] = { -#if 0 {36, 5, 0, 0, 0, 8, 1}, { 2, 6, 0, 1, 0, 1, 1}, {53, 92, 0, 0, 0, 0, 1}, {99, 11, 0, 0, 7, 1, 1}, -#endif }; +#endif static struct record *recorded; @@ -378,9 +380,11 @@ static void test_locks(char *share[NSERVERS]) recorded = (struct record *)malloc(sizeof(*recorded) * numops); for (n=0; n