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:
Oliver Hartkopp
2020-06-12 20:08:18 +02:00
parent 85ae5aaecf
commit 75d9c7e95f
4 changed files with 17 additions and 13 deletions
+3 -3
View File
@@ -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(" ");