summaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-15 05:57:37 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-17 11:40:06 -0800
commit2861877b32a7a2f4022a1c3d9b66c9b4879878ac (patch)
treed0f25f82899181b13241b2147d6ad7c72765542c /src/server
parent23402315ce01071f30d7ec0c5ca7563ce41f1cc6 (diff)
downloadopenocd+libswd-2861877b32a7a2f4022a1c3d9b66c9b4879878ac.tar.gz
openocd+libswd-2861877b32a7a2f4022a1c3d9b66c9b4879878ac.tar.bz2
openocd+libswd-2861877b32a7a2f4022a1c3d9b66c9b4879878ac.tar.xz
openocd+libswd-2861877b32a7a2f4022a1c3d9b66c9b4879878ac.zip
command_handler: change 'cmd_ctx' to CMD_CTX
Convert all command handler 'cmd_ctx' parameter usage with CMD_CTX.
Diffstat (limited to 'src/server')
-rw-r--r--src/server/gdb_server.c2
-rw-r--r--src/server/server.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c
index 716e1cfe..9605f81a 100644
--- a/src/server/gdb_server.c
+++ b/src/server/gdb_server.c
@@ -2252,7 +2252,7 @@ COMMAND_HANDLER(handle_gdb_sync_command)
if (current_gdb_connection == NULL)
{
- command_print(cmd_ctx,
+ command_print(CMD_CTX,
"gdb_sync command can only be run from within gdb using \"monitor gdb_sync\"");
return ERROR_FAIL;
}
diff --git a/src/server/server.c b/src/server/server.c
index 258c89bc..b28aa500 100644
--- a/src/server/server.c
+++ b/src/server/server.c
@@ -553,7 +553,7 @@ SERVER_PORT_COMMAND()
{
switch (CMD_ARGC) {
case 0:
- command_print(cmd_ctx, "%d", *out);
+ command_print(CMD_CTX, "%d", *out);
break;
case 1:
{