mirror of
https://github.com/linux-can/can-utils.git
synced 2026-09-20 23:12:09 +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:
@@ -437,7 +437,8 @@ int snprintf_long_canframe(char *buf, size_t size, cu_t *cu, int view)
|
||||
/* documentation see lib.h */
|
||||
|
||||
unsigned char is_canfd = cu->fd.flags;
|
||||
int i, j, dlen, offset, maxsize;
|
||||
int i, j, dlen, offset;
|
||||
size_t maxsize;
|
||||
int len;
|
||||
|
||||
/* ensure space for string termination */
|
||||
|
||||
Reference in New Issue
Block a user