[Olsr-cvs] olsrd-current/src scheduler.c,1.32,1.33

Andreas T�nnesen (spam-protected)
Thu Dec 29 23:34:39 CET 2005


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

Modified Files:
	scheduler.c 
Log Message:
Removed return value check on times(2) calls... hey, Im working in a win98 box - w00t

Index: scheduler.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/scheduler.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** scheduler.c	17 Nov 2005 04:25:44 -0000	1.32
--- scheduler.c	29 Dec 2005 22:34:37 -0000	1.33
***************
*** 125,137 ****
  
        /* 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));
! 	      olsr_syslog(OLSR_LOG_ERR, "Fatal!scheduler could not get new_times.\n%m\n");
! 	      olsr_exit(__func__, EXIT_FAILURE);
! 	    }
! 	}
  
        /* Update the global timestamp - kept for plugin compat */
--- 125,129 ----
  
        /* Update now_times */
!       now_times = times(&tms_buf);
  
        /* Update the global timestamp - kept for plugin compat */
***************
*** 211,223 ****
  
  
!       if((end_of_loop = times(&tms_buf)) < 0)
! 	{
! 	  if((end_of_loop = times(&tms_buf)) < 0)
! 	    {
! 	      fprintf(stderr, "Fatal!scheduler could not get new_times.\n%s\n", strerror(errno));
! 	      olsr_syslog(OLSR_LOG_ERR, "Fatal!scheduler could not get new_times.\n%m\n");
! 	      olsr_exit(__func__, EXIT_FAILURE);
! 	    }
! 	}
  
        //printf("Tick diff: %d\n", end_of_loop - now_times);
--- 203,207 ----
  
  
!       end_of_loop = times(&tms_buf);
  
        //printf("Tick diff: %d\n", end_of_loop - now_times);





More information about the Olsr-cvs mailing list