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
@@ -225,13 +225,13 @@ int main(int argc, char **argv)
while ((opt = getopt(argc, argv, "s:d:ax:X:ct:u?")) != -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;
@@ -249,7 +249,7 @@ int main(int argc, char **argv)
if (!strncmp(optarg, "any", 3))
extany = 1;
else
extaddr = strtoul(optarg, (char **)NULL, 16) & 0xFF;
extaddr = strtoul(optarg, NULL, 16) & 0xFF;
break;
case 'X':
@@ -257,7 +257,7 @@ int main(int argc, char **argv)
if (!strncmp(optarg, "any", 3))
rx_extany = 1;
else
rx_extaddr = strtoul(optarg, (char **)NULL, 16) & 0xFF;
rx_extaddr = strtoul(optarg, NULL, 16) & 0xFF;
break;
case 't':