Merge pull request #314 from gibsson/master

j1939cat: fix comparison signs issue
pull/318/head
Marc Kleine-Budde 2021-10-13 16:48:40 +02:00 committed by GitHub
commit 5a3d1703d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ static int j1939cat_extract_serr(struct j1939cat_priv *priv)
case J1939_EE_INFO_RX_DPO: case J1939_EE_INFO_RX_DPO:
stats->tskey = serr->ee_data; stats->tskey = serr->ee_data;
j1939cat_print_timestamp(priv, "RX DPO", &tss->ts[0]); j1939cat_print_timestamp(priv, "RX DPO", &tss->ts[0]);
if (stats->send <= priv->last_dpo && priv->last_dpo != -1) if (stats->send <= (uint32_t)priv->last_dpo && priv->last_dpo != -1)
warnx("same dpo? current: %i, last: %i", warnx("same dpo? current: %i, last: %i",
stats->send, priv->last_dpo); stats->send, priv->last_dpo);
priv->last_dpo = stats->send; priv->last_dpo = stats->send;