diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2010-08-18 22:16:46 -0700 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2010-08-18 22:16:46 -0700 |
commit | ebbe694e78cb351c239c936375cc4439afe0a929 (patch) | |
tree | bce21ac9242443221ec95496dfe82660eca58c18 | |
parent | 70baf46d8ddfc07b488d17cf0f5d8e23cf7de14e (diff) |
Removed a C99ism & made an array const
-rw-r--r-- | tests/libtest/lib579.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 |