From 50e8c467af4c7cc7c1e3cb1a66ada17e1b6e8267 Mon Sep 17 00:00:00 2001 From: Oliver Hartkopp Date: Tue, 31 Oct 2006 10:41:21 +0000 Subject: [PATCH] Added include to lib.c after discussion on commit-mailing-list. Fixed comments. Fixed Makefile (remove all *.o files / added empty line at end of file). --- Makefile | 4 ++-- lib.c | 3 ++- lib.h | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 558587a..11fa7a1 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/lib.c b/lib.c index 0de7e11..475ecd3 100644 --- a/lib.c +++ b/lib.c @@ -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 #include +#include /* for sa_family_t */ #include #define CANID_DELIM '#' diff --git a/lib.h b/lib.h index cf86953..4b010da 100644 --- a/lib.h +++ b/lib.h @@ -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. -- 2.7.4