X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=tack%2Fedit.c;h=2d1a780d36a8e747e644682516b29770306f117c;hp=a62810367d45d2c058f5c0926c0048123059c605;hb=a8987e73ec254703634802b4f7ee30d3a485524d;hpb=b1f61d9f3aa244512045a6b02e759825d7049d34 diff --git a/tack/edit.c b/tack/edit.c index a6281036..2d1a780d 100644 --- a/tack/edit.c +++ b/tack/edit.c @@ -23,7 +23,7 @@ #include #include -MODULE_ID("$Id: edit.c,v 1.5 2000/03/25 17:26:12 tom Exp $") +MODULE_ID("$Id: edit.c,v 1.8 2001/06/18 18:44:32 tom Exp $") /* * Terminfo edit features @@ -563,11 +563,11 @@ can_test( const char *s, int flags) { - int ch, i, j; + int ch, j; char name[32]; if (s) { - for (i = j = 0; (name[j] = ch = *s); s++) { + for (j = 0; (name[j] = ch = *s); s++) { if (ch == ' ' || ch == ')' || ch == '(') { if (j) { name[j] = '\0'; @@ -597,11 +597,11 @@ cap_index( int *inx) { struct name_table_entry const *nt; - int ch, i, j; + int ch, j; char name[32]; if (s) { - for (i = j = 0; ; s++) { + for (j = 0; ; s++) { name[j] = ch = *s; if (ch == ' ' || ch == ')' || ch == '(' || ch == 0) { if (j) { @@ -876,7 +876,7 @@ change_one_entry( putln(buf); ptextln("Enter new pad. 0 for no pad. CR for no change."); read_string(buf, 32); - if (buf[0] == '\0' || (buf[1] == '\0' && isalpha(buf[0]))) { + if (buf[0] == '\0' || (buf[1] == '\0' && isalpha(UChar(buf[0])))) { *chp = buf[0]; return; }