From cca0db7e7e562e3ea44e569252ff752c24e498ff Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Sun, 26 Nov 2000 11:07:45 +0000 Subject: Constify --- lib/libedit/key.c | 4 +++- lib/libedit/term.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/libedit/key.c b/lib/libedit/key.c index 3da65d56af3e..24e56a821c82 100644 --- a/lib/libedit/key.c +++ b/lib/libedit/key.c @@ -36,6 +36,8 @@ #if !defined(lint) && !defined(SCCSID) static char sccsid[] = "@(#)key.c 8.1 (Berkeley) 6/4/93"; +static const char rcsid[] = + "$FreeBSD$"; #endif /* not lint && not SCCSID */ /* @@ -601,7 +603,7 @@ key_kprint(el, key, val, ntype) { el_bindings_t *fp; char unparsbuf[EL_BUFSIZ]; - static char *fmt = "%-15s-> %s\n"; + static const char fmt[] = "%-15s-> %s\n"; if (val != NULL) switch (ntype) { diff --git a/lib/libedit/term.c b/lib/libedit/term.c index 18248f5300a4..65fd1a15669c 100644 --- a/lib/libedit/term.c +++ b/lib/libedit/term.c @@ -1222,7 +1222,7 @@ term_echotc(el, argc, argv) int arg_need, arg_cols, arg_rows; int verbose = 0, silent = 0; char *area; - static char *fmts = "%s\n", *fmtd = "%d\n"; + static const char fmts[] = "%s\n", fmtd[] = "%d\n"; struct termcapstr *t; char buf[TC_BUFSIZE]; -- cgit v1.3