mirror of
https://github.com/linux-can/can-utils.git
synced 2026-09-22 08:06:34 +02:00
clang-tidy: fix cmp function usage
Found with bugprone-suspicious-string-compare Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
+1
-1
@@ -215,7 +215,7 @@ int add_assignment(char *mode, int socket, char *txname, char *rxname,
|
||||
}
|
||||
strcpy(asgn[i].rxif, rxname);
|
||||
|
||||
if (strcmp(txname, "stdout")) {
|
||||
if (strcmp(txname, "stdout") != 0) {
|
||||
strcpy(ifr.ifr_name, txname);
|
||||
if (ioctl(socket, SIOCGIFINDEX, &ifr) < 0) {
|
||||
perror("SIOCGIFINDEX");
|
||||
|
||||
Reference in New Issue
Block a user