From: Keith Seitz <keiths@redhat.com>
To: "gdb-patches@sourceware.org ml" <gdb-patches@sourceware.org>
Subject: [RFA] Cleanup: Constify parameter for linespec_parse_line_offset
Date: Tue, 17 Jul 2012 21:28:00 -0000 [thread overview]
Message-ID: <5005D906.8010006@redhat.com> (raw)
Hi,
The following trivial patch does makes the parameter for
linespec_parse_line_offset const char*.
Ok?
Keith
ChangeLog
2012-07-17 Keith Seitz <keiths@redhat.com>
* linespec.c (linespec_parse_line_offset): Make parameter
const.
diff --git a/gdb/linespec.c b/gdb/linespec.c
index 4156694..e5c1f9f 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -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};
next reply other threads:[~2012-07-17 21:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-17 21:28 Keith Seitz [this message]
2012-07-17 21:46 ` Jan Kratochvil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5005D906.8010006@redhat.com \
--to=keiths@redhat.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox