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
+4 -4
View File
@@ -121,25 +121,25 @@ int main(int argc, char **argv)
while ((opt = getopt(argc, argv, "s:d:x:X:?")) != -1) {
switch (opt) {
case 's':
src = strtoul(optarg, (char **)NULL, 16);
src = strtoul(optarg, NULL, 16);
if (strlen(optarg) > 7)
src |= CAN_EFF_FLAG;
break;
case 'd':
dst = strtoul(optarg, (char **)NULL, 16);
dst = strtoul(optarg, NULL, 16);
if (strlen(optarg) > 7)
dst |= CAN_EFF_FLAG;
break;
case 'x':
ext = 1;
extaddr = strtoul(optarg, (char **)NULL, 16) & 0xFF;
extaddr = strtoul(optarg, NULL, 16) & 0xFF;
break;
case 'X':
rx_ext = 1;
rx_extaddr = strtoul(optarg, (char **)NULL, 16) & 0xFF;
rx_extaddr = strtoul(optarg, NULL, 16) & 0xFF;
break;
case '?':