From e1ce141bc3123c1dea7eb2ef908c8ebce945c72a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Tue, 24 Nov 2020 18:31:03 +0100 Subject: Use size_t as len type for Meter_UpdateValues Most of the time the parameter is passed to snprintf type functions --- DiskIOMeter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'DiskIOMeter.c') diff --git a/DiskIOMeter.c b/DiskIOMeter.c index da6ae7d5..0105ce35 100644 --- a/DiskIOMeter.c +++ b/DiskIOMeter.c @@ -30,7 +30,7 @@ static unsigned long int cached_read_diff = 0; static unsigned long int cached_write_diff = 0; static double cached_utilisation_diff = 0.0; -static void DiskIOMeter_updateValues(Meter* this, char* buffer, int len) { +static void DiskIOMeter_updateValues(Meter* this, char* buffer, size_t len) { static unsigned long long int cached_last_update = 0; struct timeval tv; -- cgit v1.2.3