From 34edabbf495e0222c59937973ab2bfecc8e32dd6 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Fri, 14 Nov 2008 23:03:36 +0000 Subject: Remove adjust struct member in favor of a local static variable git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@44 0d43b9a7-5ab2-4d7b-af9d-f64450cef757 --- stringsort.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'stringsort.c') diff --git a/stringsort.c b/stringsort.c index c102b54..8c80e21 100644 --- a/stringsort.c +++ b/stringsort.c @@ -52,11 +52,11 @@ void DoStringSort(void) unsigned char* arraybase = NULL; clock_t total_time = 0; int iterations = 0; - int num_arrays = 1; + static int is_adjusted = FALSE; - if (strsortstruct->adjust == FALSE) { - strsortstruct->adjust = TRUE; + if (is_adjusted == FALSE) { + is_adjusted = TRUE; /* ** Initialize the number of arrays. */ -- cgit v1.2.3