packages/net/htpdate/patches/100-adjtimex.patch
florian 787a9f012e [package] update htpdate to 1.0.4 (#5550)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@16945 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-21 15:10:59 +00:00

21 lines
442 B
Diff

--- a/htpdate.c
+++ b/htpdate.c
@@ -359,7 +359,7 @@ static int htpdate_adjtimex( double drif
/* Read current kernel frequency */
tmx.modes = 0;
- ntp_adjtime(&tmx);
+ adjtimex(&tmx);
/* Calculate new frequency */
freq = (long)(65536e6 * drift);
@@ -377,7 +377,7 @@ static int htpdate_adjtimex( double drif
printlog( 1, "seteuid()" );
exit(1);
} else {
- return( ntp_adjtime(&tmx) );
+ return( adjtimex(&tmx) );
}
}