From bb27775165d9b992120371383012404e213b1981 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 6 Jan 2019 13:30:00 -0700 Subject: 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 * remote-notif.c (handle_notification, remote_notif_ack) (remote_notif_parse): Make "buf" const. * remote-notif.h (struct notif_client) : 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. --- gdb/remote-notif.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/remote-notif.c') 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; -- cgit v1.1