server: set connection::input_pending type to bool
Change-Id: Ifae8ac2761a7a8fa12732b71c2de456e7558bd2b Signed-off-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com> Reviewed-on: http://openocd.zylin.com/5565 Tested-by: jenkins Reviewed-by: Marc Schink <dev@zapb.de>
This commit is contained in:
parent
ef6eb5691a
commit
e7f9ad3932
|
@ -277,9 +277,9 @@ static int gdb_get_char_inner(struct connection *connection, int *next_char)
|
|||
gdb_con->buf_cnt--;
|
||||
*next_char = *(gdb_con->buf_p++);
|
||||
if (gdb_con->buf_cnt > 0)
|
||||
connection->input_pending = 1;
|
||||
connection->input_pending = true;
|
||||
else
|
||||
connection->input_pending = 0;
|
||||
connection->input_pending = false;
|
||||
#ifdef _DEBUG_GDB_IO_
|
||||
LOG_DEBUG("returned char '%c' (0x%2.2x)", *next_char, *next_char);
|
||||
#endif
|
||||
|
@ -302,9 +302,9 @@ static inline int gdb_get_char_fast(struct connection *connection,
|
|||
*next_char = **buf_p;
|
||||
(*buf_p)++;
|
||||
if (*buf_cnt > 0)
|
||||
connection->input_pending = 1;
|
||||
connection->input_pending = true;
|
||||
else
|
||||
connection->input_pending = 0;
|
||||
connection->input_pending = false;
|
||||
|
||||
#ifdef _DEBUG_GDB_IO_
|
||||
LOG_DEBUG("returned char '%c' (0x%2.2x)", *next_char, *next_char);
|
||||
|
|
|
@ -76,7 +76,7 @@ static int add_connection(struct service *service, struct command_context *cmd_c
|
|||
memset(&c->sin, 0, sizeof(c->sin));
|
||||
c->cmd_ctx = copy_command_context(cmd_ctx);
|
||||
c->service = service;
|
||||
c->input_pending = 0;
|
||||
c->input_pending = false;
|
||||
c->priv = NULL;
|
||||
c->next = NULL;
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ struct connection {
|
|||
struct sockaddr_in sin;
|
||||
struct command_context *cmd_ctx;
|
||||
struct service *service;
|
||||
int input_pending;
|
||||
bool input_pending;
|
||||
void *priv;
|
||||
struct connection *next;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue