From 1834676b5f9a7f425b68d181da85f96fe246e03b Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 15 Apr 2013 10:22:12 -0600 Subject: constify complete_line This changes complete_line to take a const parameter. 2014-06-18 Tom Tromey * completer.c (complete_line): Make "line_buffer" const. * completer.h (complete_line): Update. --- gdb/completer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/completer.c') diff --git a/gdb/completer.c b/gdb/completer.c index 94f70a9..64b146b 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); -- cgit v1.1