mirror of
https://github.com/linux-can/can-utils.git
synced 2026-09-25 17:41:22 +02:00
can-utils: fix sign-compare warnings (#513)
Fixing several build issues reported by Gary Bisson when he was building can-utils with clang (AOSP14). URL: https://github.com/linux-can/can-utils/pull/512 Reported-by: Gary Bisson (https://github.com/gibsson) Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
This commit is contained in:
@@ -110,7 +110,7 @@ int isobusfs_path_to_linux_path(struct isobusfs_srv_priv *priv,
|
||||
|
||||
ptr++;
|
||||
vol_end++;
|
||||
if (ptr - linux_path >= linux_path_size) {
|
||||
if (ptr - linux_path >= (long int)linux_path_size) {
|
||||
/* Ensure null termination */
|
||||
linux_path[linux_path_size - 1] = '\0';
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user