summary refs log tree commit diff
path: root/time/test-tz.c
diff options
context:
space:
mode:
Diffstat (limited to 'time/test-tz.c')
-rw-r--r--time/test-tz.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/time/test-tz.c b/time/test-tz.c
index 47565cedec..c59a8b5ecf 100644
--- a/time/test-tz.c
+++ b/time/test-tz.c
@@ -21,7 +21,7 @@ main(int argc, char ** argv)
   int errors = 0;
   struct tm tm;
   time_t t;
-  int i;
+  unsigned int i;
 
   memset (&tm, 0, sizeof (tm));
   tm.tm_isdst = 0;
@@ -39,7 +39,7 @@ main(int argc, char ** argv)
       t = mktime(&tm);
       if (t != tests[i].expected)
 	{
-	  printf ("%s: flunked test %d (expected %lu, got %lu)\n",
+	  printf ("%s: flunked test %u (expected %lu, got %lu)\n",
 		  argv[0], i, (long) tests[i].expected, (long) t);
 	  ++errors;
 	}