[Olsr-cvs] olsrd-current/src socket_parser.c,1.26,1.27
Bernd Petrovitsch
(spam-protected)
Wed May 9 01:43:19 CEST 2007
Update of /cvsroot/olsrd/olsrd-current/src
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv32546/src
Modified Files:
socket_parser.c
Log Message:
*killed a few warnings
Index: socket_parser.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/socket_parser.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** socket_parser.c 2 May 2007 08:07:11 -0000 1.26
--- socket_parser.c 8 May 2007 23:43:17 -0000 1.27
***************
*** 61,67 ****
static int hfd = 0;
- static struct timeval tvp = {0, 0};
- static fd_set ibits;
-
/**
* Add a socket and handler to the socketset
--- 61,64 ----
***************
*** 164,167 ****
--- 161,167 ----
/* Global buffer for times(2) calls. Do not remopve since at least OpenBSD needs it. */
struct tms tms_buf;
+ fd_set ibits;
+ struct timeval tvp = {0, 0};
+
/* If there are no registered sockets we
***************
*** 177,181 ****
for(olsr_sockets = olsr_socket_entries; olsr_sockets; olsr_sockets = olsr_sockets->next)
{
! FD_SET(olsr_sockets->fd, &ibits);
}
--- 177,181 ----
for(olsr_sockets = olsr_socket_entries; olsr_sockets; olsr_sockets = olsr_sockets->next)
{
! FD_SET((unsigned int)olsr_sockets->fd, &ibits); /* And we cast here since we get a warning on Win32 */
}
More information about the Olsr-cvs
mailing list