summaryrefslogtreecommitdiff
path: root/lib/libedit
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2011-07-27 13:18:20 +0000
committerchristos <christos@NetBSD.org>2011-07-27 13:18:20 +0000
commite6a45bbdebfb14973a8a2f7d9a2aa68ed681588f (patch)
tree9b3d815864153105464722cc85ee411430d10282 /lib/libedit
parentf88610249852422af2e0dafe60e64354a48c3425 (diff)
fix narrow compilation
Diffstat (limited to 'lib/libedit')
-rw-r--r--lib/libedit/history.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libedit/history.c b/lib/libedit/history.c
index d2fd7228a54..b8a51f13064 100644
--- a/lib/libedit/history.c
+++ b/lib/libedit/history.c
@@ -1,4 +1,4 @@
-/* $NetBSD: history.c,v 1.39 2011/07/27 02:23:29 christos Exp $ */
+/* $NetBSD: history.c,v 1.40 2011/07/27 13:18:20 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)history.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: history.c,v 1.39 2011/07/27 02:23:29 christos Exp $");
+__RCSID("$NetBSD: history.c,v 1.40 2011/07/27 13:18:20 christos Exp $");
#endif
#endif /* not lint && not SCCSID */
@@ -797,7 +797,8 @@ history_save(TYPE(History) *h, const char *fname)
TYPE(HistEvent) ev;
int i = -1, retval;
size_t len, max_size;
- char *ptr, *str;
+ char *ptr;
+ const char *str;
#ifdef WIDECHAR
static ct_buffer_t conv;
#endif