j1939cat: fix comparison signs issue

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
This commit is contained in:
Gary Bisson
2021-10-13 16:32:32 +02:00
parent 4236614ab6
commit 57cc73d413
+1 -1
View File
@@ -273,7 +273,7 @@ static int j1939cat_extract_serr(struct j1939cat_priv *priv)
case J1939_EE_INFO_RX_DPO:
stats->tskey = serr->ee_data;
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",
stats->send, priv->last_dpo);
priv->last_dpo = stats->send;