mirror of
https://github.com/linux-can/can-utils.git
synced 2026-09-20 14:29:55 +02:00
j1939_timedate_cli: fix sign-compare warning
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
This commit is contained in:
@@ -47,7 +47,7 @@ static void print_time_date_packet(struct j1939_timedate_cli_priv *priv,
|
|||||||
double actual_seconds;
|
double actual_seconds;
|
||||||
double actual_day;
|
double actual_day;
|
||||||
|
|
||||||
if (msg->len < sizeof(*tdp)) {
|
if (msg->len < (int)sizeof(*tdp)) {
|
||||||
pr_warn("received too short time and date packet: %zi",
|
pr_warn("received too short time and date packet: %zi",
|
||||||
msg->len);
|
msg->len);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user