diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:36:23 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:46:02 -0500 |
commit | c583a2520616c2736cffc389c89a48b159366e6c (patch) | |
tree | b4925f26506fcee96c16119431c01760f05db95d /gdbserver/notif.cc | |
parent | ca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff) | |
download | gdb-users/simark/clang-format.zip gdb-users/simark/clang-format.tar.gz gdb-users/simark/clang-format.tar.bz2 |
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdbserver/notif.cc')
-rw-r--r-- | gdbserver/notif.cc | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/gdbserver/notif.cc b/gdbserver/notif.cc index 9b323b4..5618f57 100644 --- a/gdbserver/notif.cc +++ b/gdbserver/notif.cc @@ -50,8 +50,7 @@ #include "server.h" #include "notif.h" -static struct notif_server *notifs[] = -{ +static struct notif_server *notifs[] = { ¬if_stop, }; @@ -85,9 +84,8 @@ handle_notif_ack (char *own_buf, int packet_len) { const char *ack_name = notifs[i]->ack_name; - if (startswith (own_buf, ack_name) - && packet_len == strlen (ack_name)) - break; + if (startswith (own_buf, ack_name) && packet_len == strlen (ack_name)) + break; } if (i == ARRAY_SIZE (notifs)) @@ -103,7 +101,7 @@ handle_notif_ack (char *own_buf, int packet_len) np->queue.pop_front (); remote_debug_printf ("%s: acking %d", np->ack_name, - (int) np->queue.size ()); + (int) np->queue.size ()); delete head; } @@ -116,14 +114,12 @@ handle_notif_ack (char *own_buf, int packet_len) /* Put EVENT to the queue of NOTIF. */ void -notif_event_enque (struct notif_server *notif, - struct notif_event *event) +notif_event_enque (struct notif_server *notif, struct notif_event *event) { notif->queue.push_back (event); remote_debug_printf ("pending events: %s %d", notif->notif_name, - (int) notif->queue.size ()); - + (int) notif->queue.size ()); } /* Push one event NEW_EVENT of notification NP into NP->queue. */ |