From ebbe694e78cb351c239c936375cc4439afe0a929 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Wed, 18 Aug 2010 22:16:46 -0700 Subject: Removed a C99ism & made an array const --- tests/libtest/lib579.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/libtest/lib579.c') diff --git a/tests/libtest/lib579.c b/tests/libtest/lib579.c index 01e91d8f0..2b80ab0b6 100644 --- a/tests/libtest/lib579.c +++ b/tests/libtest/lib579.c @@ -11,7 +11,7 @@ #include "memdebug.h" -static const char *post[]={ +static const char * const post[]={ "one", "two", "three", @@ -28,11 +28,11 @@ static int progress_callback(void *clientp, double dltotal, double dlnow, double ultotal, double ulnow) { FILE *moo; + static int prev_ultotal = -1; + static int prev_ulnow = -1; (void)clientp; /* UNUSED */ (void)dltotal; /* UNUSED */ (void)dlnow; /* UNUSED */ - static int prev_ultotal = -1; - static int prev_ulnow = -1; /* to avoid depending on timing, which will cause this progress function to get called a different number of times depending on circumstances, we -- cgit v1.2.3