aboutsummaryrefslogtreecommitdiff
path: root/src/target/smp.c
diff options
context:
space:
mode:
authorChristian Eggers <ceggers@gmx.de>2014-02-14 21:48:52 +0100
committerSpencer Oliver <spen@spen-soft.co.uk>2014-03-04 20:17:34 +0000
commit9b2577742cc49683ab0ea8506d93e3e285b53bbd (patch)
tree6e9bcaf54e5ea440d87c37eb8b15ce1f3bfe5e95 /src/target/smp.c
parent537b06a810778995d7f79d9120f4063f33dee635 (diff)
downloadriscv-openocd-9b2577742cc49683ab0ea8506d93e3e285b53bbd.zip
riscv-openocd-9b2577742cc49683ab0ea8506d93e3e285b53bbd.tar.gz
riscv-openocd-9b2577742cc49683ab0ea8506d93e3e285b53bbd.tar.bz2
Constify received GDB packet
v2: - Split work into separate patches The received packet will not be altered in any of the processing functions. Some it can be made "const". Change-Id: I7bb410224cf6daa74a6c494624176ccb9ae638ac Signed-off-by: Christian Eggers <ceggers@gmx.de> Reviewed-on: http://openocd.zylin.com/1919 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/target/smp.c')
-rw-r--r--src/target/smp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/smp.c b/src/target/smp.c
index d14ceba..e688304 100644
--- a/src/target/smp.c
+++ b/src/target/smp.c
@@ -56,7 +56,7 @@
/* packet j :smp status request */
int gdb_read_smp_packet(struct connection *connection,
- char *packet, int packet_size)
+ char const *packet, int packet_size)
{
struct target *target = get_target_from_connection(connection);
int retval = ERROR_OK;
@@ -77,7 +77,7 @@ int gdb_read_smp_packet(struct connection *connection,
/* J : smp set request */
int gdb_write_smp_packet(struct connection *connection,
- char *packet, int packet_size)
+ char const *packet, int packet_size)
{
struct target *target = get_target_from_connection(connection);
char *separator;