mirror of
https://github.com/linux-can/can-utils.git
synced 2026-09-23 00:21:14 +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:
@@ -60,9 +60,11 @@
|
||||
#include <sys/socket.h>
|
||||
#include <sys/ioctl.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"
|
||||
|
||||
#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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user