Skip to content

Commit

Permalink
j1939_timedate_cli: fix sign-compare warning
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
  • Loading branch information
hartkopp committed Jun 7, 2024
1 parent 4b86049 commit 15dbb47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion j1939_timedate/j1939_timedate_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 15dbb47

Please sign in to comment.