Small changes to fix GCC-2.95.3 compilation and strict headers separation.
authorppisa <ppisa>
Tue, 17 Feb 2004 23:37:21 +0000 (23:37 +0000)
committerppisa <ppisa>
Tue, 17 Feb 2004 23:37:21 +0000 (23:37 +0000)
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

index c8373b1..53135db 100644 (file)
@@ -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");