]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/utils/can-proxy.c
LinCAN version and documentation updated to 0.3.5 and build portability fixes.
[lincan.git] / lincan / utils / can-proxy.c
index b602770f7f4054df7d615c9270aec68c5999d2e5..d2c6e82f8d921e8f69491cfa558d717daaa0070b 100644 (file)
@@ -151,7 +151,7 @@ int WriteNet(int fd, void * msg, int size) {
 int ReadNet(int fd, void * msg, int size) {
        char recvbuf[MAX_MSG_SIZE];
        int ret;
-       int recvaddrsize = sizeof(recvaddr);
+       unsigned int recvaddrsize = sizeof(recvaddr);
 
        // setting recvaddr is required for non-connected sockets
        memcpy(&recvaddr, &fromaddr, sizeof(recvaddr));
@@ -169,7 +169,7 @@ void show_usage(void) {
        "-i     : intercative (send CAN packets typed by user)\n"
        "-o file.log : log all traffic to a file\n"
        "-p port : send CAN packets arriving at UDP port\n"
-       "-c     : use select() for CAN (driver can-0.7.1-pi3.4 or newer)\n"
+       "-c     : use select()\n"
        "-q     : quiet\n"
        "-h     : this help\n"
        "UDP arriving at specified port causes can-proxy to forward all CAN\n"