From: Ethan Jackson Date: Fri, 13 Dec 2013 17:57:38 +0000 (-0800) Subject: coverage: Use size_t for coverage counter array lengths. X-Git-Tag: sliver-openvswitch-2.1.90-1~10^2~175 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=65dd5d75ecc9725e0e9196ad81b42e2be3ccf212;p=sliver-openvswitch.git coverage: Use size_t for coverage counter array lengths. 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 Acked-by: Ben Pfaff --- diff --git a/lib/coverage.c b/lib/coverage.c index eae1799d3..cc17e342a 100644 --- a/lib/coverage.c +++ b/lib/coverage.c @@ -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;