diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2020-01-07 21:00:27 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-05-07 12:55:04 +0200 |
commit | c49e41a4dea7ac8560d376f706c535fa10917903 (patch) | |
tree | ea8ac76e66c9167f722b4bb0577b8b4e59911648 | |
parent | e7cf23ba747292192e5ee448d076784957ead4b0 (diff) | |
download | nx-libs-c49e41a4dea7ac8560d376f706c535fa10917903.tar.gz nx-libs-c49e41a4dea7ac8560d376f706c535fa10917903.tar.bz2 nx-libs-c49e41a4dea7ac8560d376f706c535fa10917903.zip |
Atoms.c: scope improvements
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Atoms.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Atoms.c b/nx-X11/programs/Xserver/hw/nxagent/Atoms.c index 7adcc1284..78137a920 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Atoms.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Atoms.c @@ -444,7 +444,6 @@ void nxagentResetAtomMap(void) static void nxagentInitAtomMap(char **atomNameList, int count, Atom *atomsRet) { - unsigned int i; int list_size = count + privLastAtom; nxagentPrintAtomMapInfo("nxagentInitAtomMap: Entering"); @@ -459,13 +458,13 @@ static void nxagentInitAtomMap(char **atomNameList, int count, Atom *atomsRet) FatalError("nxagentInitAtomMap: malloc failed\n"); } - for (i = 0; i < count; i++) + for (unsigned int i = 0; i < count; i++) { name_list[i] = atomNameList[i]; atom_list[i] = None; } - for (i = 0; i < privLastAtom; i++) + for (unsigned int i = 0; i < privLastAtom; i++) { name_list[count + i] = (char *)privAtomMap[i].string; atom_list[count + i] = None; @@ -490,7 +489,7 @@ static void nxagentInitAtomMap(char **atomNameList, int count, Atom *atomsRet) return; } - for (i = 0; i < list_size; i++) + for (unsigned int i = 0; i < list_size; i++) { AtomMap *aMap = nxagentFindAtomByName(name_list[i], strlen(name_list[i])); |