summaryrefslogtreecommitdiff
path: root/src/rtos
diff options
context:
space:
mode:
Diffstat (limited to 'src/rtos')
-rw-r--r--src/rtos/rtos.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rtos/rtos.c b/src/rtos/rtos.c
index 818a9793..263795c6 100644
--- a/src/rtos/rtos.c
+++ b/src/rtos/rtos.c
@@ -314,15 +314,14 @@ int gdb_thread_packet(struct connection *connection, struct target *target, char
int symbol_num;
char* found = strstr( packet, "qSymbol::" );
- int numconv;
if (0 == found )
{
- numconv =sscanf(packet, "qSymbol:%" SCNx64 ":%s", &value, hex_name_str);
+ sscanf(packet, "qSymbol:%" SCNx64 ":%s", &value, hex_name_str);
}
else
{
// No value returned by GDB - symbol was not found
- numconv =sscanf(packet, "qSymbol::%s", hex_name_str);
+ sscanf(packet, "qSymbol::%s", hex_name_str);
}
name_str = (char*) malloc( 1+ strlen(hex_name_str) / 2 );