patch-ntpclient_c 648 B

123456789101112131415161718192021
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- ntpclient-2007.orig/ntpclient.c 2008-01-01 03:16:10.000000000 +0100
  3. +++ ntpclient-2007/ntpclient.c 2008-10-10 15:59:26.000000000 +0200
  4. @@ -146,7 +146,7 @@ static int get_current_freq(void)
  5. #ifdef __linux__
  6. struct timex txc;
  7. txc.modes=0;
  8. - if (__adjtimex(&txc) < 0) {
  9. + if (adjtimex(&txc) < 0) {
  10. perror("adjtimex"); exit(1);
  11. }
  12. return txc.freq;
  13. @@ -163,7 +163,7 @@ static int set_freq(int new_freq)
  14. struct timex txc;
  15. txc.modes = ADJ_FREQUENCY;
  16. txc.freq = new_freq;
  17. - if (__adjtimex(&txc) < 0) {
  18. + if (adjtimex(&txc) < 0) {
  19. perror("adjtimex"); exit(1);
  20. }
  21. return txc.freq;