diff options
author | Tom Tromey <tromey@redhat.com> | 2013-04-15 10:22:12 -0600 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-06-18 08:16:58 -0600 |
commit | 1834676b5f9a7f425b68d181da85f96fe246e03b (patch) | |
tree | b394abed93aa63bb954f99993b28f5554abf5900 /gdb/completer.c | |
parent | ac1a991b1c00891d29607a6f97d98d66312af83f (diff) | |
download | gdb-1834676b5f9a7f425b68d181da85f96fe246e03b.zip gdb-1834676b5f9a7f425b68d181da85f96fe246e03b.tar.gz gdb-1834676b5f9a7f425b68d181da85f96fe246e03b.tar.bz2 |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |