mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-05 06:20:00 +02:00
Added include <sys/socket.h> to lib.c after discussion on commit-mailing-list.
Fixed comments. Fixed Makefile (remove all *.o files / added empty line at end of file).
This commit is contained in:
@@ -48,11 +48,11 @@ PROGRAMS = candump can-sniffer cansend
|
|||||||
all: $(PROGRAMS)
|
all: $(PROGRAMS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(PROGRAMS)
|
rm -f $(PROGRAMS) *.o
|
||||||
|
|
||||||
distclean:
|
distclean:
|
||||||
rm -f $(PROGRAMS) *~
|
rm -f $(PROGRAMS) *~
|
||||||
|
|
||||||
cansend.o: lib.h
|
cansend.o: lib.h
|
||||||
|
|
||||||
cansend: cansend.o lib.o
|
cansend: cansend.o lib.o
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* cansend.c - simple command line tool to send CAN-frames via CAN_RAW sockets
|
* lib.c - library for command line tools
|
||||||
*
|
*
|
||||||
* Copyright (c) 2002-2005 Volkswagen Group Electronic Research
|
* Copyright (c) 2002-2005 Volkswagen Group Electronic Research
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
@@ -49,6 +49,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include <sys/socket.h> /* for sa_family_t */
|
||||||
#include <linux/can.h>
|
#include <linux/can.h>
|
||||||
|
|
||||||
#define CANID_DELIM '#'
|
#define CANID_DELIM '#'
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* cansend.c - simple command line tool to send CAN-frames via CAN_RAW sockets
|
* lib.h - library include for command line tools
|
||||||
*
|
*
|
||||||
* Copyright (c) 2002-2005 Volkswagen Group Electronic Research
|
* Copyright (c) 2002-2005 Volkswagen Group Electronic Research
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
|||||||
Reference in New Issue
Block a user