* linespec.c (linespec_parse_line_offset): Make parameter
authorKeith Seitz <keiths@redhat.com>
Wed, 18 Jul 2012 03:35:29 +0000 (03:35 +0000)
committerKeith Seitz <keiths@redhat.com>
Wed, 18 Jul 2012 03:35:29 +0000 (03:35 +0000)
const.

gdb/ChangeLog
gdb/linespec.c

index 45de328..dcb38a2 100644 (file)
@@ -1,3 +1,8 @@
+2012-07-17  Keith Seitz  <keiths@redhat.com>
+
+       * linespec.c (linespec_parse_line_offset): Make parameter
+       const.
+
 2012-07-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        PR 11914
index 4156694..e5c1f9f 100644 (file)
@@ -1420,7 +1420,7 @@ unexpected_linespec_error (linespec_parser *parser)
 /* Parse and return a line offset in STRING.  */
 
 static struct line_offset
-linespec_parse_line_offset (char *string)
+linespec_parse_line_offset (const char *string)
 {
   struct line_offset line_offset = {0, LINE_OFFSET_NONE};