summaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-12-29 22:07:21 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-12-29 22:07:39 +0100
commit4f9a9b8ebae8425eda3a71ccb782789cd3b8f6b7 (patch)
tree5143ec75e22a2f648a9375632948ce09a16ee642 /src/server
parent8f93c0a3fe29313945a63b3f2154baef70acd796 (diff)
downloadopenocd_libswd-4f9a9b8ebae8425eda3a71ccb782789cd3b8f6b7.tar.gz
openocd_libswd-4f9a9b8ebae8425eda3a71ccb782789cd3b8f6b7.tar.bz2
openocd_libswd-4f9a9b8ebae8425eda3a71ccb782789cd3b8f6b7.tar.xz
openocd_libswd-4f9a9b8ebae8425eda3a71ccb782789cd3b8f6b7.zip
warnings: use more 'const' for char *
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/server')
-rw-r--r--src/server/server.c2
-rw-r--r--src/server/server.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/server/server.c b/src/server/server.c
index 70d9566a..c70a5222 100644
--- a/src/server/server.c
+++ b/src/server/server.c
@@ -306,7 +306,7 @@ static int remove_services(void)
struct service *next = c->next;
if (c->name)
- free(c->name);
+ free((void *)c->name);
if (c->type == CONNECTION_PIPE)
{
diff --git a/src/server/server.h b/src/server/server.h
index 2afd7125..34cf1cf0 100644
--- a/src/server/server.h
+++ b/src/server/server.h
@@ -57,7 +57,7 @@ typedef int (*connection_closed_handler_t)(struct connection *connection);
struct service
{
- char *name;
+ const char *name;
enum connection_type type;
const char *port;
unsigned short portnumber;