From 063c62c6650d8ab80326794050d319bef82e2005 Mon Sep 17 00:00:00 2001 From: Urs Thuermann Date: Tue, 24 Oct 2006 13:55:43 +0000 Subject: [PATCH] changed user space programs to use new include files. added missing include file in most programs. added volatile modifier to "int running" in candump.c. --- Makefile | 3 ++- can-sniffer.c | 6 ++++-- candump.c | 8 +++++--- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 4707154..f7c5153 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,8 @@ # # Send feedback to -CFLAGS = -O2 -Wall -Wno-parentheses -I../kernel/2.4/can -fno-strict-aliasing +CFLAGS = -O2 -Wall -Wno-parentheses -I../kernel/2.6/include \ + -fno-strict-aliasing PROGRAMS = candump can-sniffer diff --git a/can-sniffer.c b/can-sniffer.c index d40f48c..7479ea3 100644 --- a/can-sniffer.c +++ b/can-sniffer.c @@ -62,9 +62,11 @@ #include #include #include +#include + +#include +#include -#include "af_can.h" -#include "bcm.h" #include "terminal.h" #define U64_DATA(p) (*(unsigned long long*)(p)->data) diff --git a/candump.c b/candump.c index aefa02a..a680d2a 100644 --- a/candump.c +++ b/candump.c @@ -60,9 +60,11 @@ #include #include #include +#include + +#include +#include -#include "af_can.h" -#include "raw.h" #include "terminal.h" #define USE_RECVFROM /* use read() or recvfrom() syscall */ @@ -87,7 +89,7 @@ const char anichar[MAXANI] = {'|', '/', '-', '\\', '|', '/', '-', '\\'}; extern int optind, opterr, optopt; -static int running = 1; +static volatile int running = 1; void print_usage(char *prg) { -- 2.39.2