Fixed comments.
Fixed Makefile (remove all *.o files / added empty line at end of file).
git-svn-id: svn://svn.berlios.de//socketcan/trunk@97
030b6a49-0b11-0410-94ab-
b0dab22257f2
all: $(PROGRAMS)
clean:
- rm -f $(PROGRAMS)
+ rm -f $(PROGRAMS) *.o
distclean:
rm -f $(PROGRAMS) *~
cansend.o: lib.h
-cansend: cansend.o lib.o
\ No newline at end of file
+cansend: cansend.o lib.o
*/
/*
- * 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
* All rights reserved.
#include <stdio.h>
#include <string.h>
+#include <sys/socket.h> /* for sa_family_t */
#include <linux/can.h>
#define CANID_DELIM '#'
*/
/*
- * 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
* All rights reserved.