[Olsr-cvs] olsrd-current/lib/txtinfo/src olsrd_txtinfo.c,1.5,1.6

Bernd Petrovitsch (spam-protected)
Wed May 9 19:29:55 CEST 2007


Update of /cvsroot/olsrd/olsrd-current/lib/txtinfo/src
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv6175/lib/txtinfo/src

Modified Files:
	olsrd_txtinfo.c 
Log Message:
 made it compile without warnings on Win32

Index: olsrd_txtinfo.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/lib/txtinfo/src/olsrd_txtinfo.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** olsrd_txtinfo.c	28 Apr 2007 19:58:49 -0000	1.5
--- olsrd_txtinfo.c	9 May 2007 17:29:53 -0000	1.6
***************
*** 263,270 ****
        /* purge read buffer to prevent blocking on linux*/
        FD_ZERO(&rfds);
!       FD_SET(ipc_connection, &rfds);
        if(select(ipc_connection+1, &rfds, NULL, NULL, &tv)) {
          char requ[128];
!         ssize_t s = recv(ipc_connection, &requ, sizeof(requ), 0);
          if (0 < s) {
            requ[s] = 0;
--- 263,270 ----
        /* purge read buffer to prevent blocking on linux*/
        FD_ZERO(&rfds);
!       FD_SET((unsigned int)ipc_connection, &rfds); /* Win32 needs the cast here */
        if(select(ipc_connection+1, &rfds, NULL, NULL, &tv)) {
          char requ[128];
!         ssize_t s = recv(ipc_connection, (void*)&requ, sizeof(requ), 0); /* Win32 needs the cast here */
          if (0 < s) {
            requ[s] = 0;





More information about the Olsr-cvs mailing list