X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=progs%2Finfocmp.c;h=84989ffc63d44cbff7e321feb7ba00d623f2b401;hp=a34153edbe98b4d84394b03e252848dce36812aa;hb=65ee0f2ca50c827bf271df7a087edd7da49f598d;hpb=8f527f87c0b979d9c2598ef5c3394463af288468 diff --git a/progs/infocmp.c b/progs/infocmp.c index a34153ed..84989ffc 100644 --- a/progs/infocmp.c +++ b/progs/infocmp.c @@ -42,7 +42,7 @@ #include -MODULE_ID("$Id: infocmp.c,v 1.102 2008/08/04 13:05:18 tom Exp $") +MODULE_ID("$Id: infocmp.c,v 1.103 2008/08/16 22:04:56 tom Exp $") #define L_CURL "{" #define R_CURL "}" @@ -221,7 +221,7 @@ static bool useeq(ENTRY * e1, ENTRY * e2) /* are the use references in two entries equivalent? */ { - int i, j; + unsigned i, j; if (e1->nuses != e2->nuses) return (FALSE); @@ -271,7 +271,7 @@ static void print_uses(ENTRY * ep, FILE *fp) /* print an entry's use references */ { - int i; + unsigned i; if (!ep->nuses) fputs("NULL", fp); @@ -659,7 +659,7 @@ analyze_string(const char *name, const char *cap, TERMTYPE *tp) if (!expansion) { csi = skip_csi(sp); for (ap = std_caps; ap->from; ap++) { - size_t adj = (size_t)(csi ? 2 : 0); + size_t adj = (size_t) (csi ? 2 : 0); len = strlen(ap->from); if (csi && skip_csi(ap->from) != csi) @@ -1284,7 +1284,7 @@ main(int argc, char *argv[]) _nc_progname = _nc_rootname(argv[0]); /* make sure we have enough space to add two terminal entries */ - myargv = typeCalloc(char *, (size_t)(argc + 3)); + myargv = typeCalloc(char *, (size_t) (argc + 3)); memcpy(myargv, argv, (sizeof(char *) * (size_t) argc)); argv = myargv;