aboutsummaryrefslogtreecommitdiff
path: root/gdb/completer.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-04-15 10:22:12 -0600
committerTom Tromey <tromey@redhat.com>2014-06-18 08:16:58 -0600
commit1834676b5f9a7f425b68d181da85f96fe246e03b (patch)
treeb394abed93aa63bb954f99993b28f5554abf5900 /gdb/completer.c
parentac1a991b1c00891d29607a6f97d98d66312af83f (diff)
constify complete_line
This changes complete_line to take a const parameter. 2014-06-18 Tom Tromey <tromey@redhat.com> * completer.c (complete_line): Make "line_buffer" const. * completer.h (complete_line): Update.
Diffstat (limited to 'gdb/completer.c')
-rw-r--r--gdb/completer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/completer.c b/gdb/completer.c
index 94f70a99f2..64b146bd0f 100644
--- a/gdb/completer.c
+++ b/gdb/completer.c
@@ -772,7 +772,7 @@ complete_line_internal (const char *text,
should pretend that the line ends at POINT. */
VEC (char_ptr) *
-complete_line (const char *text, char *line_buffer, int point)
+complete_line (const char *text, const char *line_buffer, int point)
{
return complete_line_internal (text, line_buffer,
point, handle_completions);