aboutsummaryrefslogtreecommitdiff
path: root/gdb/completer.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/completer.c')
-rw-r--r--gdb/completer.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/completer.c b/gdb/completer.c
index 4274241..a9f6e31 100644
--- a/gdb/completer.c
+++ b/gdb/completer.c
@@ -686,11 +686,11 @@ line_completion_function (const char *text, int matches, char *line_buffer, int
either QUOTECHARS or BREAKCHARS is NULL, use the same values used
by the completer. */
-char *
-skip_quoted_chars (char *str, char *quotechars, char *breakchars)
+const char *
+skip_quoted_chars (const char *str, char *quotechars, char *breakchars)
{
char quote_char = '\0';
- char *scan;
+ const char *scan;
if (quotechars == NULL)
quotechars = gdb_completer_quote_characters;
@@ -728,8 +728,8 @@ skip_quoted_chars (char *str, char *quotechars, char *breakchars)
characters and word break characters used by the completer).
Returns pointer to the location after the "word". */
-char *
-skip_quoted (char *str)
+const char *
+skip_quoted (const char *str)
{
return skip_quoted_chars (str, NULL, NULL);
}