mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-06 06:49:53 +02:00
Merge pull request #330 from marckleinebudde/fix-types
testj1939: fix 64-bit types for some platforms
This commit is contained in:
@@ -10,6 +10,9 @@
|
||||
* as published by the Free Software Foundation
|
||||
*/
|
||||
|
||||
/* needed on some 644 bit platforms to get consistent 64-bit types */
|
||||
#define __SANE_USERSPACE_TYPES__
|
||||
|
||||
#include <sys/socket.h>
|
||||
#include <linux/can.h>
|
||||
#include <linux/can/j1939.h>
|
||||
|
||||
+1
-1
@@ -295,7 +295,7 @@ int main(int argc, char *argv[])
|
||||
int i;
|
||||
|
||||
if (todo_names && peername.can_addr.j1939.name)
|
||||
printf("%016" PRIx64 " ", peername.can_addr.j1939.name);
|
||||
printf("%016llx ", peername.can_addr.j1939.name);
|
||||
printf("%02x %05x:", peername.can_addr.j1939.addr,
|
||||
peername.can_addr.j1939.pgn);
|
||||
for (i = 0, j = 0; i < ret; ++i, j++) {
|
||||
|
||||
Reference in New Issue
Block a user