summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpencer Oliver <ntfreak@users.sourceforge.net>2010-10-05 16:29:37 +0100
committerSpencer Oliver <ntfreak@users.sourceforge.net>2010-10-05 16:29:37 +0100
commit6229e438dd548ae75f9d26e2ea8cbf070ce27e5f (patch)
treeb712a96847dee31a15181429a110968b7ce08f84
parentebe431879d26ca5c85021c80e18af7f91f09fa38 (diff)
downloadopenocd+libswd-6229e438dd548ae75f9d26e2ea8cbf070ce27e5f.tar.gz
openocd+libswd-6229e438dd548ae75f9d26e2ea8cbf070ce27e5f.tar.bz2
openocd+libswd-6229e438dd548ae75f9d26e2ea8cbf070ce27e5f.tar.xz
openocd+libswd-6229e438dd548ae75f9d26e2ea8cbf070ce27e5f.zip
build: remove warn_unused_result errors
Remove any build errors for strtol when building release version of openocd. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
-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 74dec63c..222af47a 100644
--- a/src/server/gdb_server.c
+++ b/src/server/gdb_server.c
@@ -2410,7 +2410,7 @@ static int gdb_target_add_one(struct target *target)
* then we increment the port number for the next target.
*/
char *end;
- strtol(gdb_port_next, &end, 0);
+ portnumber = strtol(gdb_port_next, &end, 0);
if (!*end)
{
if (parse_long(gdb_port_next, &portnumber) == ERROR_OK)
diff --git a/src/server/server.c b/src/server/server.c
index 01d91d30..1feb744b 100644
--- a/src/server/server.c
+++ b/src/server/server.c
@@ -200,7 +200,7 @@ int add_service(char *name, const char *port, int max_connections, new_connectio
} else
{
char *end;
- strtol(c->port, &end, 0);
+ portnumber = strtol(c->port, &end, 0);
if (!*end && (parse_long(c->port, &portnumber) == ERROR_OK))
{
c->portnumber = portnumber;