aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-notif.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-01-06 13:30:00 -0700
committerTom Tromey <tom@tromey.com>2019-01-14 17:32:24 -0700
commitbb27775165d9b992120371383012404e213b1981 (patch)
tree61d3ff87dfb04c5ea6d43f20f7bda37987e9fd12 /gdb/remote-notif.c
parent05be00a884850c5fe314004c9b91609f480308f6 (diff)
downloadfsf-binutils-gdb-bb27775165d9b992120371383012404e213b1981.zip
fsf-binutils-gdb-bb27775165d9b992120371383012404e213b1981.tar.gz
fsf-binutils-gdb-bb27775165d9b992120371383012404e213b1981.tar.bz2
Constify some remote-notif functions
This constifies the "buf" arguments to various remote-notif functions and updates the users. gdb/ChangeLog 2019-01-14 Tom Tromey <tom@tromey.com> * remote-notif.c (handle_notification, remote_notif_ack) (remote_notif_parse): Make "buf" const. * remote-notif.h (struct notif_client) <parse, ack>: Make "buf" const. (remote_notif_parse, remote_notif_ack, handle_notification): Likewise. * remote.c (remote_notif_stop_parse): Make "buf" const. (remote_target::remote_parse_stop_reply): Make "buf" const. (remote_notif_stop_ack): Make "buf" const.
Diffstat (limited to 'gdb/remote-notif.c')
-rw-r--r--gdb/remote-notif.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/remote-notif.c b/gdb/remote-notif.c
index 9ccb5b9..ae9a94d 100644
--- a/gdb/remote-notif.c
+++ b/gdb/remote-notif.c
@@ -59,7 +59,7 @@ static void do_notif_event_xfree (void *arg);
void
remote_notif_ack (remote_target *remote,
- struct notif_client *nc, char *buf)
+ struct notif_client *nc, const char *buf)
{
struct notif_event *event = nc->alloc_event ();
struct cleanup *old_chain
@@ -79,7 +79,7 @@ remote_notif_ack (remote_target *remote,
struct notif_event *
remote_notif_parse (remote_target *remote,
- struct notif_client *nc, char *buf)
+ struct notif_client *nc, const char *buf)
{
struct notif_event *event = nc->alloc_event ();
struct cleanup *old_chain
@@ -126,7 +126,7 @@ remote_async_get_pending_events_handler (gdb_client_data data)
update STATE. */
void
-handle_notification (struct remote_notif_state *state, char *buf)
+handle_notification (struct remote_notif_state *state, const char *buf)
{
struct notif_client *nc;
size_t i;