[Pkg-wmaker-commits] [wmmemload] 50/103: wmmemload: Be consistent in signedness of percentages.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Mon Aug 24 03:11:44 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmmemload.

commit 0bb6e24fa77ee5d3e2adc0caf1ce4bc87dba4180
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Thu Oct 9 23:50:16 2014 -0500

    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);
          ^
---
 src/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main.c b/src/main.c
index 4d196ad..94ad1ca 100644
--- a/src/main.c
+++ b/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;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmmemload.git



More information about the Pkg-wmaker-commits mailing list