From: Andrew Bartlett Date: Tue, 3 Jul 2001 04:29:50 +0000 (+0000) Subject: See if we can stick to slightly valid C.. X-Git-Tag: samba-2.2.5pre1~1861^2~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e77cfe1379d92d2be4e2895454e14d11311a913d;p=thirdparty%2Fsamba.git See if we can stick to slightly valid C.. (With thanks to tpot) Andrew Bartlett --- diff --git a/source/torture/locktest.c b/source/torture/locktest.c index cee18624a45..ef6c9a978ac 100644 --- a/source/torture/locktest.c +++ b/source/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