13 lines
485 B
Plaintext
13 lines
485 B
Plaintext
$OpenBSD: patch-panel-plugin_uptime_c,v 1.1.1.1 2005/05/12 04:38:51 jolan Exp $
|
|
--- panel-plugin/uptime.c.orig 2003-11-13 13:01:50.000000000 -0600
|
|
+++ panel-plugin/uptime.c 2003-12-16 02:21:37.000000000 -0600
|
|
@@ -94,7 +94,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)
|