mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-04 22:09:57 +02:00
changed user space programs to use new include files.
added missing include file <net/if.h> in most programs. added volatile modifier to "int running" in candump.c.
This commit is contained in:
@@ -40,7 +40,8 @@
|
|||||||
#
|
#
|
||||||
# Send feedback to <socketcan-users@lists.berlios.de>
|
# Send feedback to <socketcan-users@lists.berlios.de>
|
||||||
|
|
||||||
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
|
PROGRAMS = candump can-sniffer
|
||||||
|
|
||||||
|
|||||||
+4
-2
@@ -62,9 +62,11 @@
|
|||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/uio.h>
|
#include <sys/uio.h>
|
||||||
|
#include <net/if.h>
|
||||||
|
|
||||||
|
#include <linux/can.h>
|
||||||
|
#include <linux/can/bcm.h>
|
||||||
|
|
||||||
#include "af_can.h"
|
|
||||||
#include "bcm.h"
|
|
||||||
#include "terminal.h"
|
#include "terminal.h"
|
||||||
|
|
||||||
#define U64_DATA(p) (*(unsigned long long*)(p)->data)
|
#define U64_DATA(p) (*(unsigned long long*)(p)->data)
|
||||||
|
|||||||
@@ -60,9 +60,11 @@
|
|||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/uio.h>
|
#include <sys/uio.h>
|
||||||
|
#include <net/if.h>
|
||||||
|
|
||||||
|
#include <linux/can.h>
|
||||||
|
#include <linux/can/raw.h>
|
||||||
|
|
||||||
#include "af_can.h"
|
|
||||||
#include "raw.h"
|
|
||||||
#include "terminal.h"
|
#include "terminal.h"
|
||||||
|
|
||||||
#define USE_RECVFROM /* use read() or recvfrom() syscall */
|
#define USE_RECVFROM /* use read() or recvfrom() syscall */
|
||||||
@@ -87,7 +89,7 @@ const char anichar[MAXANI] = {'|', '/', '-', '\\', '|', '/', '-', '\\'};
|
|||||||
|
|
||||||
extern int optind, opterr, optopt;
|
extern int optind, opterr, optopt;
|
||||||
|
|
||||||
static int running = 1;
|
static volatile int running = 1;
|
||||||
|
|
||||||
void print_usage(char *prg)
|
void print_usage(char *prg)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user