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:
@@ -882,7 +882,7 @@ rereadDefaults(void)
|
|||||||
static void
|
static void
|
||||||
initDefaults()
|
initDefaults()
|
||||||
{
|
{
|
||||||
int i;
|
unsigned int i;
|
||||||
WDefaultEntry *entry;
|
WDefaultEntry *entry;
|
||||||
|
|
||||||
WMPLSetCaseSensitive(False);
|
WMPLSetCaseSensitive(False);
|
||||||
@@ -1179,7 +1179,7 @@ wReadStaticDefaults(WMPropList *dict)
|
|||||||
{
|
{
|
||||||
WMPropList *plvalue;
|
WMPropList *plvalue;
|
||||||
WDefaultEntry *entry;
|
WDefaultEntry *entry;
|
||||||
int i;
|
unsigned int i;
|
||||||
void *tdata;
|
void *tdata;
|
||||||
|
|
||||||
|
|
||||||
@@ -1357,9 +1357,9 @@ wReadDefaults(WScreen *scr, WMPropList *new_dict)
|
|||||||
{
|
{
|
||||||
WMPropList *plvalue, *old_value;
|
WMPropList *plvalue, *old_value;
|
||||||
WDefaultEntry *entry;
|
WDefaultEntry *entry;
|
||||||
int i, must_update;
|
unsigned int i, must_update;
|
||||||
int update_workspace_back = 0; /* kluge :/ */
|
int update_workspace_back = 0; /* kluge :/ */
|
||||||
int needs_refresh;
|
unsigned int needs_refresh;
|
||||||
void *tdata;
|
void *tdata;
|
||||||
WMPropList *old_dict = (WDWindowMaker->dictionary!=new_dict
|
WMPropList *old_dict = (WDWindowMaker->dictionary!=new_dict
|
||||||
? WDWindowMaker->dictionary : NULL);
|
? WDWindowMaker->dictionary : NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user