summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-11-26 11:07:45 +0000
committerkris <kris@FreeBSD.org>2000-11-26 11:07:45 +0000
commitb64f677da6a8f3cbce3b1c8a085c7992e947b487 (patch)
treebe702b9053cbac86e3cfcc0be9bd7d7620c6332f /lib
parent0bec2472fdbc599d7de044c8672b653d89153217 (diff)
downloadFreeBSD-src-b64f677da6a8f3cbce3b1c8a085c7992e947b487.zip
FreeBSD-src-b64f677da6a8f3cbce3b1c8a085c7992e947b487.tar.gz
Constify
Diffstat (limited to 'lib')
-rw-r--r--lib/libedit/key.c4
-rw-r--r--lib/libedit/term.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/libedit/key.c b/lib/libedit/key.c
index 3da65d5..24e56a8 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 18248f5..65fd1a1 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];
OpenPOWER on IntegriCloud