mirror of
https://github.com/linux-can/can-utils.git
synced 2026-09-22 16:09:52 +02:00
j1939: Fix comparison type mismatch warnings
Fix missing (recently introduced) j1939 files that have not been fixed
in commit 46895a41c5 ("Fix comparison type mismatch warnings") from
Gary Bisson.
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
This commit is contained in:
+3
-3
@@ -95,8 +95,8 @@ static uint8_t *buf;
|
||||
*/
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
int ret, sock, j, opt;
|
||||
unsigned int len;
|
||||
int ret, sock, opt;
|
||||
unsigned int j, len;
|
||||
struct timeval tref, tdut, ttmp;
|
||||
struct sockaddr_can src;
|
||||
struct j1939_filter filt;
|
||||
@@ -287,7 +287,7 @@ int main(int argc, char **argv)
|
||||
|
||||
printf("[%i%s]", len, (msg.msg_flags & MSG_TRUNC) ? "..." : "");
|
||||
for (j = 0; j < len; ) {
|
||||
int end = j + 4;
|
||||
unsigned int end = j + 4;
|
||||
if (end > len)
|
||||
end = len;
|
||||
printf(" ");
|
||||
|
||||
Reference in New Issue
Block a user