]> granicus.if.org Git - curl/commitdiff
Removed a C99ism & made an array const
authorDan Fandrich <dan@coneharvesters.com>
Thu, 19 Aug 2010 05:16:46 +0000 (22:16 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Thu, 19 Aug 2010 05:16:46 +0000 (22:16 -0700)
tests/libtest/lib579.c

index 01e91d8f0f48aedca19481828570466936fdf5f5..2b80ab0b61d1090c554e2d17779c9c5ac0e7b1a8 100644 (file)
@@ -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