]> rtime.felk.cvut.cz Git - socketcan-devel.git/commitdiff
Added include <sys/socket.h> to lib.c after discussion on commit-mailing-list.
authorhartkopp <hartkopp@030b6a49-0b11-0410-94ab-b0dab22257f2>
Tue, 31 Oct 2006 10:41:21 +0000 (10:41 +0000)
committerhartkopp <hartkopp@030b6a49-0b11-0410-94ab-b0dab22257f2>
Tue, 31 Oct 2006 10:41:21 +0000 (10:41 +0000)
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

can-utils/Makefile
can-utils/lib.c
can-utils/lib.h

index 558587a5b60a72420aeb997d07e67412f4dec9fa..11fa7a1b8b5eba7719e1d266665aabbc74a038b7 100644 (file)
@@ -48,11 +48,11 @@ PROGRAMS = candump can-sniffer cansend
 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
index 0de7e117630b81da0c13b7ad8a978aec3ccf68b6..475ecd394c72c5e28abfb3e35bba48f50f94435b 100644 (file)
@@ -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
  * All rights reserved.
@@ -49,6 +49,7 @@
 #include <stdio.h>
 #include <string.h>
 
+#include <sys/socket.h> /* for sa_family_t */
 #include <linux/can.h>
 
 #define CANID_DELIM '#'
index cf86953556fa2c8d282115391c921b661c990cea..4b010dab21b5190d2239633d318b8e3252ef5d90 100644 (file)
@@ -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
  * All rights reserved.