Avoid multiple compiler warnings such as the following:
main.c: In function ‘update’:
main.c:157:4: warning: pointer targets in passing argument 1 of ‘mem_getusage’ 
differ in signedness [-Wpointer-sign]
    mem_getusage(&mem_usage, &swap_usage, &mem_opts);
    ^
In file included from main.c:29:0:
mem.h:16:6: note: expected ‘int *’ but argument is of type ‘unsigned int *’
 void mem_getusage(int *per_mem, int *per_swap, const struct mem_options *opts);
      ^
---
 wmmemload/src/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/wmmemload/src/main.c b/wmmemload/src/main.c
index 4d196ad..94ad1ca 100644
--- a/wmmemload/src/main.c
+++ b/wmmemload/src/main.c
@@ -49,8 +49,8 @@ static unsigned update_interval = 1;
 static light    backlight = LIGHTOFF;
 
 static struct  mem_options mem_opts;
-static unsigned mem_usage = 0;
-static unsigned swap_usage = 0;
+static int mem_usage = 0;
+static int swap_usage = 0;
 static unsigned alarm_mem = 101;
 static unsigned alarm_swap = 101;
 
-- 
1.9.1


-- 
To unsubscribe, send mail to [email protected].

Reply via email to