diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2018-01-04 19:06:17 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2018-01-04 19:06:17 +0000 |
commit | 6087ae8c36819f319221353407db5d682ebbeaa9 (patch) | |
tree | 8f5c93f526f8b248771738af9dd5e44bc3026db7 /bin/ksh/edit.c | |
parent | b8248150087cc6bc6eb68ea8f22fce25fbe741fa (diff) |
Back out sign compare changes that appear to cause problems on hppa.
Requested by deraadt@
Diffstat (limited to 'bin/ksh/edit.c')
-rw-r--r-- | bin/ksh/edit.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/ksh/edit.c b/bin/ksh/edit.c index 6ddd6ad54cc..0df2c421885 100644 --- a/bin/ksh/edit.c +++ b/bin/ksh/edit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: edit.c,v 1.59 2018/01/01 19:45:56 millert Exp $ */ +/* $OpenBSD: edit.c,v 1.60 2018/01/04 19:06:16 millert Exp $ */ /* * Command line editing - common code @@ -224,13 +224,13 @@ set_editmode(const char *ed) #endif }; char *rcp; - unsigned int ele; + int i; if ((rcp = strrchr(ed, '/'))) ed = ++rcp; - for (ele = 0; ele < NELEM(edit_flags); ele++) - if (strstr(ed, sh_options[(int) edit_flags[ele]].name)) { - change_flag(edit_flags[ele], OF_SPECIAL, 1); + for (i = 0; i < NELEM(edit_flags); i++) + if (strstr(ed, sh_options[(int) edit_flags[i]].name)) { + change_flag(edit_flags[i], OF_SPECIAL, 1); return; } } |