perf-counter: use 'int' instead of size_t
authorAndy Zhou <azhou@nicira.com>
Wed, 15 Apr 2015 00:25:32 +0000 (17:25 -0700)
committerAndy Zhou <azhou@nicira.com>
Wed, 15 Apr 2015 00:25:43 +0000 (17:25 -0700)
commit8c0294bdfecfdf91b227f1eb2b48c1cabf287235
tree18b4b304fd3604a128a2410698fab7ae12d93cdf
parent296527dffb8b6f90f2305bd20bae36be3add3cdc
perf-counter: use 'int' instead of size_t

'size_t' does not allow for catching the case where 'read' returns
an error code, which is a negative number.

Reported-by: Ben Pfaff <blp@nicira.com>
Signed-off-by: Andy Zhou <azhou@nicira.com>
lib/perf-counter.c