From 67d66b03eb3343cf9d86ef6fdfd651e0e2291a76 Mon Sep 17 00:00:00 2001 From: Roman Bogorodskiy Date: Sun, 6 Jul 2008 09:25:28 +0000 Subject: [PATCH] - Use u_int instead of unsigned long for storing vm related values returned by sysctl - Minor style fix in preproccessor comments git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1215 7f574dfc-610e-0410-a909-a81674777703 --- src/conky.h | 2 +- src/freebsd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/conky.h b/src/conky.h index 422eb805..925f7591 100644 --- a/src/conky.h +++ b/src/conky.h @@ -56,7 +56,7 @@ #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) #include "freebsd.h" -#endif /* __FreeBSD__ */ +#endif /* __FreeBSD__ || __FreeBSD_kernel__ */ #if defined(__OpenBSD__) #include "openbsd.h" diff --git a/src/freebsd.c b/src/freebsd.c index 822489fc..09914a7f 100644 --- a/src/freebsd.c +++ b/src/freebsd.c @@ -146,7 +146,7 @@ int check_mount(char *s) void update_meminfo() { - unsigned long total_pages, inactive_pages, free_pages; + u_int total_pages, inactive_pages, free_pages; unsigned long swap_avail, swap_free; int pagesize = getpagesize();