From f4fd88b8a9ddc58af68a8931f7f779bdb4f409a8 Mon Sep 17 00:00:00 2001 From: "Carlos R. Mafra" Date: Tue, 18 Aug 2009 15:03:43 +0200 Subject: [PATCH] Make loop variable be unsigned int gcc was complaining in a few places things like: defaults.c:890: warning: comparison between signed and unsigned so let's just make the loop counting variables be unsigned, as the never get negative anyway. I also spotted other two variables which can be unsigned too. --- src/defaults.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/defaults.c b/src/defaults.c index 0c1f7f40..b14f8b20 100644 --- a/src/defaults.c +++ b/src/defaults.c @@ -882,7 +882,7 @@ rereadDefaults(void) static void initDefaults() { - int i; + unsigned int i; WDefaultEntry *entry; WMPLSetCaseSensitive(False); @@ -1179,7 +1179,7 @@ wReadStaticDefaults(WMPropList *dict) { WMPropList *plvalue; WDefaultEntry *entry; - int i; + unsigned int i; void *tdata; @@ -1357,9 +1357,9 @@ wReadDefaults(WScreen *scr, WMPropList *new_dict) { WMPropList *plvalue, *old_value; WDefaultEntry *entry; - int i, must_update; + unsigned int i, must_update; int update_workspace_back = 0; /* kluge :/ */ - int needs_refresh; + unsigned int needs_refresh; void *tdata; WMPropList *old_dict = (WDWindowMaker->dictionary!=new_dict ? WDWindowMaker->dictionary : NULL);