summaryrefslogtreecommitdiff
path: root/bin/ksh
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-10-16 23:19:00 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-10-16 23:19:00 +0000
commit2b30cac8bf7ca0ed0d5af0bb3f214f7f7565f88f (patch)
tree1a5211ce45b9848e9faf2862202076cfcc82bdfd /bin/ksh
parent8a431915954c006a4c0fcd6553b5daade619b688 (diff)
Change x_do_ins()'s arg type from int to size_t for correctness's sake,
and to silence a compiler warning. Also remove its prototype, which is directly above its definition. ok tedu@
Diffstat (limited to 'bin/ksh')
-rw-r--r--bin/ksh/emacs.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/ksh/emacs.c b/bin/ksh/emacs.c
index 8597b80306a..0045b698cce 100644
--- a/bin/ksh/emacs.c
+++ b/bin/ksh/emacs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: emacs.c,v 1.57 2015/10/16 17:14:04 mmcc Exp $ */
+/* $OpenBSD: emacs.c,v 1.58 2015/10/16 23:18:59 mmcc Exp $ */
/*
* Emacs-like command line editing and history
@@ -413,10 +413,8 @@ x_ins_string(int c)
return x_insert(c);
}
-static int x_do_ins(const char *cp, int len);
-
static int
-x_do_ins(const char *cp, int len)
+x_do_ins(const char *cp, size_t len)
{
if (xep+len >= xend) {
x_e_putc(BEL);