freebsd-ports/net-mgmt/collectd5/files/patch-src__disk.c
Tim Bishop 620812da65 - Fix build with libstatgrab 0.90
PR:		ports/189738
Approved by:	maintainer
2014-05-12 22:06:36 +00:00

12 lines
329 B
C

--- ./src/disk.c.orig 2014-01-26 08:09:14.856391000 +0000
+++ ./src/disk.c 2014-05-10 23:35:17.232681397 +0100
@@ -732,7 +732,8 @@
#elif defined(HAVE_LIBSTATGRAB)
sg_disk_io_stats *ds;
- int disks, counter;
+ size_t disks;
+ int counter;
char name[DATA_MAX_NAME_LEN];
if ((ds = sg_get_disk_io_stats(&disks)) == NULL)