[Xfce4-commits] <xfce4-systemload-plugin:master> use size_t instead of int for sysctl()
Landry Breuil
noreply at xfce.org
Wed Apr 18 15:48:01 CEST 2012
Updating branch refs/heads/master
to a40fc6adf0dade6edd7c4e584a46fa5aa9c82606 (commit)
from 386c890da02e05ad4a777ee8b61b689cf3200a00 (commit)
commit a40fc6adf0dade6edd7c4e584a46fa5aa9c82606
Author: Landry Breuil <landry at xfce.org>
Date: Wed Apr 18 15:46:10 2012 +0200
use size_t instead of int for sysctl()
panel-plugin/uptime.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/panel-plugin/uptime.c b/panel-plugin/uptime.c
index 3ddad35..8badf56 100644
--- a/panel-plugin/uptime.c
+++ b/panel-plugin/uptime.c
@@ -94,7 +94,7 @@ gulong read_uptime(void)
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)
More information about the Xfce4-commits
mailing list