]> git.sur5r.net Git - openocd/commitdiff
build: remove warn_unused_result errors
authorSpencer Oliver <ntfreak@users.sourceforge.net>
Tue, 5 Oct 2010 15:29:37 +0000 (16:29 +0100)
committerSpencer Oliver <ntfreak@users.sourceforge.net>
Tue, 5 Oct 2010 15:29:37 +0000 (16:29 +0100)
Remove any build errors for strtol when building release
version of openocd.

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
src/server/gdb_server.c
src/server/server.c

index 74dec63c819f859309248675f1d57f2559df0a01..222af47a0486ebc2dcab316d8d4a3429e9d94325 100644 (file)
@@ -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)
index 01d91d30fe5f92f90ac4b5dad0528830ef17b2a0..1feb744b46569e9fa3ffcf9ef9bee96629c4e676 100644 (file)
@@ -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;