Fixed problems in can_virtual, loop when closing pipes.
--- a/drivers/can_virtual/can_virtual.c Sat May 12 22:43:30 2007 +0200
+++ b/drivers/can_virtual/can_virtual.c Sat May 12 23:06:43 2007 +0200
@@ -42,7 +42,7 @@
/*********functions which permit to communicate with the board****************/
UNS8 canReceive_driver(CAN_HANDLE fd0, Message *m)
{
- if(read(((CANPipe*)fd0)->pipe[0], m, sizeof(Message)) < sizeof(Message))
+ if(read(((CANPipe*)fd0)->pipe[0], m, sizeof(Message)) != (ssize_t)sizeof(Message))
{
return 1;
}