diff options
author | 1999-01-10 17:55:01 +0000 | |
---|---|---|
committer | 1999-01-10 17:55:01 +0000 | |
commit | 18bbba6b0cbabbcfd7450a7b529c92b0139ddfd0 (patch) | |
tree | cf2055b230421c9c37e0545ce24913f2eb81518c /bin/ksh/emacs.c | |
parent | Fix bug in c_sh.c where an unitialized variable could be used. (diff) | |
download | wireguard-openbsd-18bbba6b0cbabbcfd7450a7b529c92b0139ddfd0.tar.xz wireguard-openbsd-18bbba6b0cbabbcfd7450a7b529c92b0139ddfd0.zip |
sync with pdksh-unstable-5.2.13.6
Diffstat (limited to 'bin/ksh/emacs.c')
-rw-r--r-- | bin/ksh/emacs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/ksh/emacs.c b/bin/ksh/emacs.c index 2d09cfcb412..53ea0f332a0 100644 --- a/bin/ksh/emacs.c +++ b/bin/ksh/emacs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: emacs.c,v 1.6 1998/10/29 04:09:20 millert Exp $ */ +/* $OpenBSD: emacs.c,v 1.7 1999/01/10 17:55:02 millert Exp $ */ /* * Emacs-like command line editing and history @@ -680,7 +680,7 @@ static void x_bs(c) int c; { - register i; + register int i; i = x_size(c); while (i--) x_e_putc('\b'); @@ -690,7 +690,7 @@ static int x_size_str(cp) register char *cp; { - register size = 0; + register int size = 0; while (*cp) size += x_size(*cp++); return size; @@ -1480,7 +1480,7 @@ x_init_emacs() for (j = 0; j < X_TABSZ; j++) x_tab[i][j] = XFUNC_error; for (i = 0; i < NELEM(x_defbindings); i++) - x_tab[x_defbindings[i].xdb_tab][x_defbindings[i].xdb_char] + x_tab[(unsigned char)x_defbindings[i].xdb_tab][x_defbindings[i].xdb_char] = x_defbindings[i].xdb_func; x_atab = (char *(*)[X_TABSZ]) alloc(sizeofN(*x_atab, X_NTABS), AEDIT); |