projects
/
platform
/
upstream
/
bash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported from ../bash-2.05.tar.gz.
[platform/upstream/bash.git]
/
lib
/
readline
/
histsearch.c
diff --git
a/lib/readline/histsearch.c
b/lib/readline/histsearch.c
index
8d153b6
..
ff4f3a1
100644
(file)
--- a/
lib/readline/histsearch.c
+++ b/
lib/readline/histsearch.c
@@
-63,7
+63,7
@@
char *history_search_delimiter_chars = (char *)NULL;
static int
history_search_internal (string, direction, anchored)
static int
history_search_internal (string, direction, anchored)
- char *string;
+ c
onst c
har *string;
int direction, anchored;
{
register int i, reverse;
int direction, anchored;
{
register int i, reverse;
@@
-159,7
+159,7
@@
history_search_internal (string, direction, anchored)
/* Do a non-anchored search for STRING through the history in DIRECTION. */
int
history_search (string, direction)
/* Do a non-anchored search for STRING through the history in DIRECTION. */
int
history_search (string, direction)
- char *string;
+ c
onst c
har *string;
int direction;
{
return (history_search_internal (string, direction, NON_ANCHORED_SEARCH));
int direction;
{
return (history_search_internal (string, direction, NON_ANCHORED_SEARCH));
@@
-168,7
+168,7
@@
history_search (string, direction)
/* Do an anchored search for string through the history in DIRECTION. */
int
history_search_prefix (string, direction)
/* Do an anchored search for string through the history in DIRECTION. */
int
history_search_prefix (string, direction)
- char *string;
+ c
onst c
har *string;
int direction;
{
return (history_search_internal (string, direction, ANCHORED_SEARCH));
int direction;
{
return (history_search_internal (string, direction, ANCHORED_SEARCH));
@@
-179,7
+179,7
@@
history_search_prefix (string, direction)
which point to begin searching. */
int
history_search_pos (string, dir, pos)
which point to begin searching. */
int
history_search_pos (string, dir, pos)
- char *string;
+ c
onst c
har *string;
int dir, pos;
{
int ret, old;
int dir, pos;
{
int ret, old;