openbsd-ports/x11/xfce4/xfce4-systemload/patches/patch-panel-plugin_uptime_c
steven 0f6c911fd9 update to 0.4.2
from Landry Breuil <gaston at gcu.info>
2007-05-08 22:12:18 +00:00

13 lines
460 B
Plaintext

$OpenBSD: patch-panel-plugin_uptime_c,v 1.2 2007/05/08 22:12:18 steven Exp $
--- panel-plugin/uptime.c.orig Wed Jan 17 19:01:09 2007
+++ panel-plugin/uptime.c Fri Apr 6 22:46:53 2007
@@ -92,7 +92,7 @@ gulong read_uptime()
int mib[2] = {CTL_KERN, KERN_BOOTTIME};
struct timeval boottime;
time_t now;
- int size = sizeof(boottime);
+ size_t size = sizeof(boottime);
gulong uptime;
if((sysctl(mib, 2, &boottime, &size, NULL, 0) != -1)