aboutsummaryrefslogtreecommitdiff
path: root/src/include
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/include
parentf52a51403f4b9e5d0264cc355bf2414634bb5500 (diff)
Fix pointer sign warnings and remove -Wno-pointer-sign.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gdb_packet.h6
-rw-r--r--src/include/hex_utils.h5
2 files changed, 5 insertions, 6 deletions
diff --git a/src/include/gdb_packet.h b/src/include/gdb_packet.h
index 222b86d..aa1a654 100644
--- a/src/include/gdb_packet.h
+++ b/src/include/gdb_packet.h
@@ -21,10 +21,10 @@
#ifndef __GDB_PACKET_H
#define __GDB_PACKET_H
-int gdb_getpacket(unsigned char *packet, int size);
-void gdb_putpacket(unsigned char *packet, int size);
+int gdb_getpacket(char *packet, int size);
+void gdb_putpacket(const char *packet, int size);
#define gdb_putpacketz(packet) gdb_putpacket((packet), strlen(packet))
-void gdb_putpacket_f(const unsigned char *packet, ...);
+void gdb_putpacket_f(const char *packet, ...);
void gdb_out(const char *buf);
void gdb_outf(const char *fmt, ...);
diff --git a/src/include/hex_utils.h b/src/include/hex_utils.h
index 3aa210b..8a0d092 100644
--- a/src/include/hex_utils.h
+++ b/src/include/hex_utils.h
@@ -21,9 +21,8 @@
#ifndef __HEX_UTILS_H
#define __HEX_UTILS_H
-char * hexify(char *hex, const unsigned char *buf, int size);
-
-char * unhexify(unsigned char *buf, const char *hex, int size);
+char * hexify(char *hex, const void *buf, size_t size);
+char * unhexify(void *buf, const char *hex, size_t size);
#endif