aboutsummaryrefslogtreecommitdiff
path: root/src/gdb_packet.c
diff options
context:
space:
mode:
authorGareth McMullin2015-03-13 20:35:39 -0700
committerGareth McMullin2015-03-13 20:35:39 -0700
commitf5c856af3b3b0155050e793f50c29965d2c8326d (patch)
treeaa3e96821c585cb8214bc5cd345a66edc1378596 /src/gdb_packet.c
parentf52a51403f4b9e5d0264cc355bf2414634bb5500 (diff)
Fix pointer sign warnings and remove -Wno-pointer-sign.
Diffstat (limited to 'src/gdb_packet.c')
-rw-r--r--src/gdb_packet.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gdb_packet.c b/src/gdb_packet.c
index 4dc934f..fb3335e 100644
--- a/src/gdb_packet.c
+++ b/src/gdb_packet.c
@@ -29,8 +29,7 @@
#include <stdarg.h>
-int
-gdb_getpacket(unsigned char *packet, int size)
+int gdb_getpacket(char *packet, int size)
{
unsigned char c;
unsigned char csum;
@@ -89,7 +88,7 @@ gdb_getpacket(unsigned char *packet, int size)
return i;
}
-void gdb_putpacket(unsigned char *packet, int size)
+void gdb_putpacket(const char *packet, int size)
{
int i;
unsigned char csum;
@@ -130,7 +129,7 @@ void gdb_putpacket(unsigned char *packet, int size)
} while((gdb_if_getchar_to(2000) != '+') && (tries++ < 3));
}
-void gdb_putpacket_f(const unsigned char *fmt, ...)
+void gdb_putpacket_f(const char *fmt, ...)
{
va_list ap;
char *buf;