[Olsr-cvs] olsrd-current/src socket_parser.c,1.25,1.26
Bernd Petrovitsch
(spam-protected)
Wed May 2 10:07:13 CEST 2007
Update of /cvsroot/olsrd/olsrd-current/src
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv25573/src
Modified Files:
socket_parser.c
Log Message:
* provide an argument to the tiems(2) call - OpenBSD seems to barf on a NULL there
Index: socket_parser.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/socket_parser.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** socket_parser.c 25 Apr 2007 22:08:17 -0000 1.25
--- socket_parser.c 2 May 2007 08:07:11 -0000 1.26
***************
*** 162,165 ****
--- 162,167 ----
int n;
struct olsr_socket_entry *olsr_sockets;
+ /* Global buffer for times(2) calls. Do not remopve since at least OpenBSD needs it. */
+ struct tms tms_buf;
/* If there are no registered sockets we
***************
*** 195,200 ****
/* Update time since this is much used by the parsing functions */
! gettimeofday(&now, NULL);
! now_times = times(NULL);
for(olsr_sockets = olsr_socket_entries;olsr_sockets;olsr_sockets = olsr_sockets->next)
--- 197,202 ----
/* Update time since this is much used by the parsing functions */
! gettimeofday(&now, NULL);
! now_times = times(&tms_buf);
for(olsr_sockets = olsr_socket_entries;olsr_sockets;olsr_sockets = olsr_sockets->next)
More information about the Olsr-cvs
mailing list