1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00

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.
This commit is contained in:
Carlos R. Mafra
2009-08-18 15:03:43 +02:00
parent f36ab39680
commit f4fd88b8a9

View File

@@ -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);