From: ppisa Date: Tue, 17 Feb 2004 23:37:21 +0000 (+0000) Subject: Small changes to fix GCC-2.95.3 compilation and strict headers separation. X-Git-Tag: CLT_COMM_CAN_pre_canmsg_change~1 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/commitdiff_plain/0283e6cc4d05cfb5dcf1ca121ce828dd5ec3f977 Small changes to fix GCC-2.95.3 compilation and strict headers separation. The GCC option -nostdinc is used to ensure that default user-space includes are not mistakenly read by RT-Linux or Linux kernel targets compilation. The standard headers as "string.h" are allowed by addition of $(LINUX_DIR)/include/linux path. --- diff --git a/lincan/utils/send.c b/lincan/utils/send.c index c8373b1..53135db 100644 --- a/lincan/utils/send.c +++ b/lincan/utils/send.c @@ -9,11 +9,9 @@ int main(void) { - int i=0, fd=0, ret=0, count=0; - char loop=0; + int i=0, fd=0, ret=0; unsigned long bits; - char ch, transmission[MAXL+1], specialfile[MAXL+1]="/dev/can0", emptystring[MAXL+1]="", buf[MAXL+1]; - char remote[MAXL+1]; + char specialfile[MAXL+1]="/dev/can0", buf[MAXL+1]; struct canmsg_t message; printf("\nThis program allows you to send a stream of Can messages.\n");