diff options
author | kris <kris@FreeBSD.org> | 2000-11-26 11:07:45 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2000-11-26 11:07:45 +0000 |
commit | b64f677da6a8f3cbce3b1c8a085c7992e947b487 (patch) | |
tree | be702b9053cbac86e3cfcc0be9bd7d7620c6332f /lib | |
parent | 0bec2472fdbc599d7de044c8672b653d89153217 (diff) | |
download | FreeBSD-src-b64f677da6a8f3cbce3b1c8a085c7992e947b487.zip FreeBSD-src-b64f677da6a8f3cbce3b1c8a085c7992e947b487.tar.gz |
Constify
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libedit/key.c | 4 | ||||
-rw-r--r-- | lib/libedit/term.c | 2 |
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]; |