From 0283e6cc4d05cfb5dcf1ca121ce828dd5ec3f977 Mon Sep 17 00:00:00 2001 From: ppisa Date: Tue, 17 Feb 2004 23:37:21 +0000 Subject: [PATCH] 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. --- lincan/utils/send.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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"); -- 2.39.2