Rosen Penev and Marc Kleine-Budde
e370ad5256
testj1939: fix 64-bit types for some platforms
...
Revert commit that introduced PRIx64 to print an __u64, and added
define to get the same types on all platforms.
With __SANE_USERSPACE_TYPES__ the Linux headers use an unsigned long
long for __u64 on all platforms, especially MIPS64.
Fixes: eb9cfac954 ("use PRIx64")
Signed-off-by: Rosen Penev <rosenp@gmail.com >
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de >
2022-01-03 10:44:29 +01:00
Rosen Penev and GitHub
eb9cfac954
use PRIx64
...
This is the proper specifier for uint64_t.
2021-12-15 18:08:13 -08:00
Rosen Penev and GitHub
7dd714907b
mcp251xfd: add missing libgen.h header
...
Needed for the basename() function under musl.
2021-12-15 18:00:39 -08:00
Rosen Penev and GitHub
c3348ed51e
add missing time.h include
...
Needed for musl.
2020-11-17 22:14:09 -08:00
Rosen Penev and Oliver Hartkopp
204235c9ce
make struct initialization C99 compatible again
...
Mainly change {} to { 0 } to remove a pedantic warning.
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2020-10-14 13:29:13 +02:00
Rosen Penev
f766174677
custom if statement reordering
...
It makes more sense to return before hitting else.
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2020-10-12 23:48:38 -07:00
Rosen Penev
48bb69bc7b
remove basic usages of memset with {}
...
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2020-10-12 23:28:58 -07:00
Rosen Penev
b153fe3f35
clang-tidy: sort includes alphabetically
...
Found with llvm-include-order
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2020-10-12 23:28:58 -07:00
Rosen Penev
3e85fc5422
clang-tidy: fix cmp function usage
...
Found with bugprone-suspicious-string-compare
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2020-10-12 23:28:58 -07:00
Rosen Penev
33f3593436
clang-tidy: use uppercase literal
...
Found with readability-uppercase-literal-suffix
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2020-10-12 23:28:57 -07:00
Rosen Penev
3e67b5cbd1
clang-tidy: remove pointless return
...
Found with readability-redundant-control-flow
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2020-10-12 23:28:57 -07:00
Rosen Penev
d5320d554e
clang-tidy: fix wrong identation
...
Found with readability-misleading-indentation
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2020-10-12 23:28:57 -07:00
Rosen Penev
17a5fe6022
clang-tidy: do not use else after return
...
Found with readability-else-after-return
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2020-10-12 23:28:22 -07:00
Rosen Penev
d7df79e687
convert usleep to nanosleep
...
usleep is removed in POSIX 2008.
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2020-10-11 23:35:31 -07:00
Rosen Penev
8d2ed4c959
j1939cat: remove bzero
...
bzero is removed in POSIX 2008. malloc/bzero can also be replaced with
calloc.
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2020-10-11 22:02:23 -07:00