[Olsr-cvs] olsrd-current/src scheduler.c,1.30,1.31

Andreas T�nnesen (spam-protected)
Fri Oct 28 20:39:35 CEST 2005


Update of /cvsroot/olsrd/olsrd-current/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2613/src

Modified Files:
	scheduler.c 
Log Message:
Checking for -1 and not negative on call to times

Index: scheduler.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/scheduler.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** scheduler.c	29 Mar 2005 19:07:19 -0000	1.30
--- scheduler.c	28 Oct 2005 18:39:33 -0000	1.31
***************
*** 114,120 ****
  
        /* Update now_times */
!       if((now_times = times(&tms_buf)) < 0)
  	{
! 	  if((now_times = times(&tms_buf)) < 0)
  	    {
  	      fprintf(stderr, "Fatal!scheduler could not get new_times.\n%s\n", strerror(errno));
--- 114,120 ----
  
        /* Update now_times */
!       if((now_times = times(&tms_buf)) == -1)
  	{
! 	  if((now_times = times(&tms_buf)) == -1)
  	    {
  	      fprintf(stderr, "Fatal!scheduler could not get new_times.\n%s\n", strerror(errno));





More information about the Olsr-cvs mailing list