summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xstdcmap.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/xstdcmap.c b/xstdcmap.c
index 970da6d..99fcf4b 100644
--- a/xstdcmap.c
+++ b/xstdcmap.c
@@ -148,7 +148,7 @@ parse(int argc, char **argv)
snprintf(option, sizeof(option), "%s%s", program_name, ".delete");
if (XrmGetResource(database, option, (char *) NULL, &type, &value)) {
- register int i;
+ unsigned int i;
for (i=0; i < NPROPERTIES; i++) {
if (strcmp((char *) value.addr, propertyTable[i].nickname) == 0) {
propertyTable[i].delete++;
@@ -213,7 +213,7 @@ getDeepestVisual(int visual_class, /* specifies the desired visual class */
int nvisuals) /* specifies number of visuals in the list */
{
register int i;
- unsigned int maxdepth = 0;
+ int maxdepth = 0;
XVisualInfo *v = NULL;
for (i=0; i < nvisuals; i++, vinfo++)
@@ -276,7 +276,8 @@ visualStringFromClass(int class)
static int
doIndividualColormaps(void)
{
- int i, screen, nvisuals;
+ unsigned int i;
+ int screen, nvisuals;
Status status = -1;
XVisualInfo *vinfo = NULL, *v = NULL, template;