summaryrefslogtreecommitdiff
path: root/src/helper/binarybuffer.h
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-07-11 17:40:15 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-07-11 17:40:15 +0000
commitb06f254b248db04c71f685c811e4371ea8ae8ff3 (patch)
tree60b33fc0840b8fdfa0c3b60276535add038ca23c /src/helper/binarybuffer.h
parente04f0142eed242c91609fe8e913cac1fbfe0a527 (diff)
downloadopenocd+libswd-b06f254b248db04c71f685c811e4371ea8ae8ff3.tar.gz
openocd+libswd-b06f254b248db04c71f685c811e4371ea8ae8ff3.tar.bz2
openocd+libswd-b06f254b248db04c71f685c811e4371ea8ae8ff3.tar.xz
openocd+libswd-b06f254b248db04c71f685c811e4371ea8ae8ff3.zip
Charles Hardin ckhardin at gmail.com
This address the >32 bit problem with drscan also added a check for bypass in the execute since this will manifest itself as a memory corruption when this check helps to debug the problem alot easier git-svn-id: svn://svn.berlios.de/openocd/trunk@794 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper/binarybuffer.h')
-rw-r--r--src/helper/binarybuffer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helper/binarybuffer.h b/src/helper/binarybuffer.h
index 02735412..5e97cd03 100644
--- a/src/helper/binarybuffer.h
+++ b/src/helper/binarybuffer.h
@@ -77,8 +77,8 @@ extern u8* buf_cpy(u8 *from, u8 *to, int size);
extern u8* buf_set_ones(u8 *buf, int count);
extern u8* buf_set_buf(u8 *src, int src_start, u8 *dst, int dst_start, int len);
-extern int str_to_buf(char* str, int len, u8 *bin_buf, int buf_size, int radix);
-extern char* buf_to_str(u8 *buf, int size, int radix);
+extern int str_to_buf(const char *str, int len, u8 *bin_buf, int buf_size, int radix);
+extern char* buf_to_str(const u8 *buf, int size, int radix);
struct scan_field_s;
extern int buf_to_u32_handler(u8 *in_buf, void *priv, struct scan_field_s *field);