100-adjtimex.patch 442 B

1234567891011121314151617181920
  1. --- a/htpdate.c
  2. +++ b/htpdate.c
  3. @@ -359,7 +359,7 @@ static int htpdate_adjtimex( double drif
  4. /* Read current kernel frequency */
  5. tmx.modes = 0;
  6. - ntp_adjtime(&tmx);
  7. + adjtimex(&tmx);
  8. /* Calculate new frequency */
  9. freq = (long)(65536e6 * drift);
  10. @@ -377,7 +377,7 @@ static int htpdate_adjtimex( double drif
  11. printlog( 1, "seteuid()" );
  12. exit(1);
  13. } else {
  14. - return( ntp_adjtime(&tmx) );
  15. + return( adjtimex(&tmx) );
  16. }
  17. }