diff options
Diffstat (limited to 'gdb/common')
-rw-r--r-- | gdb/common/rsp-low.c | 4 | ||||
-rw-r--r-- | gdb/common/rsp-low.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gdb/common/rsp-low.c b/gdb/common/rsp-low.c index 4befeb1..85987f7 100644 --- a/gdb/common/rsp-low.c +++ b/gdb/common/rsp-low.c @@ -92,8 +92,8 @@ pack_hex_byte (char *pkt, int byte) /* See rsp-low.h. */ -char * -unpack_varlen_hex (char *buff, /* packet to parse */ +const char * +unpack_varlen_hex (const char *buff, /* packet to parse */ ULONGEST *result) { int nibble; diff --git a/gdb/common/rsp-low.h b/gdb/common/rsp-low.h index 2b3685f..99dc93f 100644 --- a/gdb/common/rsp-low.h +++ b/gdb/common/rsp-low.h @@ -41,7 +41,7 @@ extern char *pack_hex_byte (char *pkt, int byte); in RESULT. Reads until a non-hex digit is seen. Returns a pointer to the terminating character. */ -extern char *unpack_varlen_hex (char *buff, ULONGEST *result); +extern const char *unpack_varlen_hex (const char *buff, ULONGEST *result); /* HEX is a string of characters representing hexadecimal digits. Convert pairs of hex digits to bytes and store sequentially into |