j1939_timedate_cli: fix sign-compare warning
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>pull/545/head
parent
4e00e39e6e
commit
0e63099b9a
|
|
@ -47,7 +47,7 @@ static void print_time_date_packet(struct j1939_timedate_cli_priv *priv,
|
|||
double actual_seconds;
|
||||
double actual_day;
|
||||
|
||||
if (msg->len < sizeof(*tdp)) {
|
||||
if (msg->len < (int)sizeof(*tdp)) {
|
||||
pr_warn("received too short time and date packet: %zi",
|
||||
msg->len);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue