coverage: Use size_t for coverage counter array lengths.
authorEthan Jackson <ethan@nicira.com>
Fri, 13 Dec 2013 17:57:38 +0000 (09:57 -0800)
committerEthan Jackson <ethan@nicira.com>
Fri, 13 Dec 2013 18:44:04 +0000 (10:44 -0800)
Fixes the following warning on my system.

../lib/coverage.c:54:40: error: incompatible pointer types passing
'unsigned int *' to parameter of type 'size_t *' (aka 'unsigned long
*')

Signed-off-by: Ethan Jackson <ethan@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/coverage.c

index eae1799..cc17e34 100644 (file)
@@ -30,8 +30,8 @@ VLOG_DEFINE_THIS_MODULE(coverage);
 
 /* The coverage counters. */
 static struct coverage_counter **coverage_counters = NULL;
-static unsigned int n_coverage_counters = 0;
-static unsigned int allocated_coverage_counters = 0;
+static size_t n_coverage_counters = 0;
+static size_t allocated_coverage_counters = 0;
 
 static struct ovs_mutex coverage_mutex = OVS_MUTEX_INITIALIZER;