wmmemload: Be consistent in signedness of percentages.

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);
      ^
This commit is contained in:
Doug Torrance 2014-10-09 23:50:16 -05:00 committed by Carlos R. Mafra
parent 580fb497e3
commit b938743e0f

View file

@ -49,8 +49,8 @@ static unsigned update_interval = 1;
static light backlight = LIGHTOFF; static light backlight = LIGHTOFF;
static struct mem_options mem_opts; static struct mem_options mem_opts;
static unsigned mem_usage = 0; static int mem_usage = 0;
static unsigned swap_usage = 0; static int swap_usage = 0;
static unsigned alarm_mem = 101; static unsigned alarm_mem = 101;
static unsigned alarm_swap = 101; static unsigned alarm_swap = 101;