mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-17 21:26:13 -07:00
Fix char* signedness, by Andre Przywara.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3816 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
60fe76f386
commit
ffe8ab83da
5 changed files with 24 additions and 23 deletions
|
|
@ -209,7 +209,7 @@ static int put_packet(GDBState *s, char *buf)
|
|||
*(p++) = tohex((csum) & 0xf);
|
||||
|
||||
s->last_packet_len = p - s->last_packet;
|
||||
put_buffer(s, s->last_packet, s->last_packet_len);
|
||||
put_buffer(s, (uint8_t *)s->last_packet, s->last_packet_len);
|
||||
|
||||
#ifdef CONFIG_USER_ONLY
|
||||
i = get_char(s);
|
||||
|
|
@ -1189,7 +1189,7 @@ static void gdb_read_byte(GDBState *s, int ch)
|
|||
#ifdef DEBUG_GDB
|
||||
printf("Got NACK, retransmitting\n");
|
||||
#endif
|
||||
put_buffer(s, s->last_packet, s->last_packet_len);
|
||||
put_buffer(s, (uint8_t *)s->last_packet, s->last_packet_len);
|
||||
}
|
||||
#ifdef DEBUG_GDB
|
||||
else if (ch == '+')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue