[BACK]Return to ev_timers.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / isc

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/isc/ev_timers.c between version 1.8.6.1 and 1.9

version 1.8.6.1, 2012/04/17 00:05:20 version 1.9, 2012/03/13 21:13:38
Line 120  evCmpTime(struct timespec a, struct time
Line 120  evCmpTime(struct timespec a, struct time
 }  }
   
 struct timespec  struct timespec
 evNowTime(void)  evNowTime() {
 {  
         struct timeval now;          struct timeval now;
 #ifdef CLOCK_REALTIME  #ifdef CLOCK_REALTIME
         struct timespec tsnow;          struct timespec tsnow;
Line 137  evNowTime(void)
Line 136  evNowTime(void)
                 return (tsnow);                  return (tsnow);
 #endif  #endif
         if (gettimeofday(&now, NULL) < 0)          if (gettimeofday(&now, NULL) < 0)
                 return (evConsTime((time_t)0, 0L));                  return (evConsTime(0L, 0L));
         return (evTimeSpec(now));          return (evTimeSpec(now));
 }  }
   
Line 150  evUTCTime(void) {
Line 149  evUTCTime(void) {
                 return (tsnow);                  return (tsnow);
 #endif  #endif
         if (gettimeofday(&now, NULL) < 0)          if (gettimeofday(&now, NULL) < 0)
                 return (evConsTime((time_t)0, 0L));                  return (evConsTime(0L, 0L));
         return (evTimeSpec(now));          return (evTimeSpec(now));
 }  }
   

Legend:
Removed from v.1.8.6.1  
changed lines
  Added in v.1.9

CVSweb <webmaster@jp.NetBSD.org>