remove obsolete char pointer casts

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
This commit is contained in:
Oliver Hartkopp
2022-03-14 18:21:45 +01:00
parent 84d3294132
commit dfb607c807
9 changed files with 39 additions and 39 deletions
+2 -2
View File
@@ -931,7 +931,7 @@ int readsettings(char* name)
done = true;
continue;
}
unsigned long id = strtoul(&buf[1], (char **)NULL, 16);
unsigned long id = strtoul(&buf[1], NULL, 16);
sniftab[idx].current.can_id = id;
@@ -942,7 +942,7 @@ int readsettings(char* name)
for (j = max_dlen - 1; j >= 0 ; j--) {
sniftab[idx].notch.data[j] =
(__u8) strtoul(&buf[2*j+12], (char **)NULL, 16) & 0xFF;
(__u8) strtoul(&buf[2*j+12], NULL, 16) & 0xFF;
buf[2*j+12] = 0; /* cut off each time */
}