"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libntp/timexsup.c" between
ntp-4.2.8p14.tar.gz and ntp-4.2.8p15.tar.gz

About: NTP is the the Official Reference Implementation of the Network Time Protocol (NTP) that synchronize the clocks of computers over a network.

timexsup.c  (ntp-4.2.8p14):timexsup.c  (ntp-4.2.8p15)
skipping to change at line 30 skipping to change at line 30
static long static long
clamp_rounded( clamp_rounded(
double dval double dval
) )
{ {
/* round */ /* round */
dval = floor(dval + 0.5); dval = floor(dval + 0.5);
/* clamp / saturate */ /* clamp / saturate */
if (dval >= LONG_MAX) if (dval >= (double)LONG_MAX)
return LONG_MAX; return LONG_MAX;
if (dval <= LONG_MIN) if (dval <= (double)LONG_MIN)
return LONG_MIN; return LONG_MIN;
return (long)dval; return (long)dval;
} }
double double
dbl_from_var_long( dbl_from_var_long(
long lval, long lval,
int status int status
) )
{ {
#ifdef STA_NANO #ifdef STA_NANO
if (status & STA_NANO) if (status & STA_NANO)
return (double)lval * 1e-9; return (double)lval * 1e-9;
#else #else
 End of changes. 4 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)