Urs ThuermannandOliver Hartkopp 0c61f2ac4c candump: fix off-by-one error in dropcount calculation
Calculations using unsigned integer types are done modulo U*INT_MAX+1,
so you get the correct difference of two values by simply subtracting.
No special handling for overflow is neccessary.

Signed-off-by: Urs Thuermann <urs@isnogud.escape.de>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
2014-10-23 19:27:09 +02:00
2010-04-19 12:12:18 +00:00
2012-01-11 12:14:15 +01:00
2014-07-02 16:03:34 +02:00
2012-11-14 20:57:16 +01:00
2014-01-31 11:52:15 +01:00
2012-11-14 20:57:16 +01:00
2012-11-14 20:57:16 +01:00
2012-11-14 20:57:16 +01:00
2014-05-05 22:13:38 +02:00
2012-11-14 20:57:16 +01:00
2012-11-14 20:57:16 +01:00
2012-11-14 20:57:16 +01:00
2014-01-31 12:00:19 +01:00
2012-11-14 20:57:16 +01:00
S
Description
Linux-CAN / SocketCAN user space applications
2.9 MiB
Languages
C 98.1%
CMake 0.7%
Makefile 0.6%
Shell 0.5%