Use the UINT32_MAX define from stdint.h instead of writing it into a comment.
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
#include <stdio.h>
#include <stdlib.h>
+#include <stdint.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
if (dropcnt[i] > last_dropcnt[i])
frames = dropcnt[i] - last_dropcnt[i];
else
- frames = 4294967295U - last_dropcnt[i] + dropcnt[i]; /* 4294967295U == UINT32_MAX */
+ frames = UINT32_MAX - last_dropcnt[i] + dropcnt[i];
if (silent != SILENT_ON)
printf("DROPCOUNT: dropped %d CAN frame%s on '%s' socket (total drops %d)\n",