summaryrefslogtreecommitdiffstats
path: root/contrib/ncurses/tack/edit.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-05-17 08:21:06 +0000
committerpeter <peter@FreeBSD.org>2001-05-17 08:21:06 +0000
commit2d92ca4d1406bb14f0584ee668516b4c3303416c (patch)
treeddc5913d13b386dceb6b29644af208b011ae2bad /contrib/ncurses/tack/edit.c
parent5411edc0fbb52100d0c701ae4710b831a88fe7d5 (diff)
parentb7ada7f2444f41b672faef4f93e446bdf8584cf9 (diff)
downloadFreeBSD-src-2d92ca4d1406bb14f0584ee668516b4c3303416c.zip
FreeBSD-src-2d92ca4d1406bb14f0584ee668516b4c3303416c.tar.gz
This commit was generated by cvs2svn to compensate for changes in r76726,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/ncurses/tack/edit.c')
-rw-r--r--contrib/ncurses/tack/edit.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/ncurses/tack/edit.c b/contrib/ncurses/tack/edit.c
index a628103..f6574fb 100644
--- a/contrib/ncurses/tack/edit.c
+++ b/contrib/ncurses/tack/edit.c
@@ -23,7 +23,7 @@
#include <time.h>
#include <tic.h>
-MODULE_ID("$Id: edit.c,v 1.5 2000/03/25 17:26:12 tom Exp $")
+MODULE_ID("$Id: edit.c,v 1.7 2001/02/24 22:10:40 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(CharOf(buf[0])))) {
*chp = buf[0];
return;
}
OpenPOWER on IntegriCloud