0f6c911fd9
from Landry Breuil <gaston at gcu.info>
13 lines
460 B
Plaintext
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)
|