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>
This commit is contained in:
Spencer Oliver 2010-10-05 16:29:37 +01:00
parent ebe431879d
commit 6229e438dd
2 changed files with 2 additions and 2 deletions

View 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)

View 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;