aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-mm.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2000-10-06 21:50:56 +0000
committerKevin Buettner <kevinb@redhat.com>2000-10-06 21:50:56 +0000
commitd742f2c2204a85d8196bcda35f22fa2da93aed70 (patch)
tree851715a7b0f27a5b7bb5a7d5f7e3b308a2367532 /gdb/remote-mm.c
parent3e4554a2064c06f1b49a759095ad5f2d172d45bc (diff)
downloadgdb-d742f2c2204a85d8196bcda35f22fa2da93aed70.zip
gdb-d742f2c2204a85d8196bcda35f22fa2da93aed70.tar.gz
gdb-d742f2c2204a85d8196bcda35f22fa2da93aed70.tar.bz2
Protoization.
Diffstat (limited to 'gdb/remote-mm.c')
-rw-r--r--gdb/remote-mm.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/remote-mm.c b/gdb/remote-mm.c
index 2c52974..7840ed5 100644
--- a/gdb/remote-mm.c
+++ b/gdb/remote-mm.c
@@ -1698,15 +1698,15 @@ error_msg_str (INT32 code)
return (cbuf);
}
/****************************************************************************/
-/*
- * Receive a message and expect it to be of type msgcode.
- * Returns 0/1 on failure/success.
- */
+
+/* Receive a message, placing it in MSG_BUF, and expect it to be of
+ type MSGCODE. If an error occurs, a non-zero FROM_TTY indicates
+ that the message should be printed.
+
+ Return 0 for failure, 1 for success. */
+
static int
-expect_msg (msgcode, msg_buf, from_tty)
- INT32 msgcode; /* Msg code we expect */
- union msg_t *msg_buf; /* Where to put the message received */
- int from_tty; /* Print message on error if non-zero */
+expect_msg (INT32 msgcode, union msg_t *msg_buf, int from_tty)
{
int retries = 0;
while (msg_recv_serial (msg_buf) && (retries++ < MAX_RETRIES));