📄 183
字号:
Replied: Tue, 17 Mar 1998 16:26:33 -0500Replied: "Bruce Bartram 303-497-6217 <bwb@etl.noaa.gov> "Received: from mail.eecis.udel.edu by whimsy.udel.edu id aa22608; 17 Mar 1998 15:10 ESTReceived: from mickey by netsrv (SMI-8.6/SMI-SVR4) id NAA10605; Tue, 17 Mar 1998 13:10:05 -0700Received: by mickey (SMI-8.6/SMI-SVR4) id NAA02676; Tue, 17 Mar 1998 13:10:48 -0700Date: Tue, 17 Mar 1998 13:10:48 -0700From: Bruce Bartram 303-497-6217 <bwb@etl.noaa.gov>Message-Id: <199803172010.NAA02676@mickey>To: mills@udel.edu, stenn@whimsy.udel.eduSubject: xntp 3-5.92c patch troubleHowdy,Attached is a trouble report from the newsgroup about a proposed patchI sumbitted for xntp3-5.9x. It seems that a pair of braces is neededto make the code match the indentation's intent.Bruce Bartram bbartram@etl.noaa.gov just another chimehead-----From: Klaus Kusche <Klaus.Kusche@ooe.gv.at>Newsgroups: comp.protocols.time.ntpSubject: Fatal bug in xntpd 3-5.92c!?!Date: Tue, 17 Mar 1998 16:00:52 +0100Organization: Government of Upper Austria, Computing CentreWhen looking into my xntpd problems under AIX,I found a piece of code (which was changed between3-5.92 and 3-5.92c!) which looks wrong to me in 3-5.92c:Braces are missing around the body of an "if".If I understand things correctly, this bugcauses xntpd not to adjust the local clock any moreas soon as it has sync'ed to any peer!!!Below is the diff between the original 3-5.92c fileand the file with the braces I inserted.*** ntp_loopfilter.c.sav Tue Mar 17 14:57:00 1998--- ntp_loopfilter.c Tue Mar 17 14:58:02 1998****************** 586,592 **** */ if (sys_peer) { if (sys_peer->refclktype == REFCLK_LOCALCLOCK &&! sys_peer->flags & FLAG_PREFER) /* I think that sys_clock_offset might bejammed * to exactly zero now. It might have had a * small residual before things switched to the--- 586,592 ---- */ if (sys_peer) { if (sys_peer->refclktype == REFCLK_LOCALCLOCK &&! sys_peer->flags & FLAG_PREFER) { /* I think that sys_clock_offset might bejammed * to exactly zero now. It might have had a * small residual before things switched to the****************** 595,600 ****--- 595,601 ---- * when the external control jumped the time */ L_CLR(&sys_clock_offset); return;+ } } L_CLR(&offset); L_ADDF(&offset, adjustment);-- DI. Dr. Klaus KuscheOberoesterreichische Landesregierung / Government of Upper AustriaRechenzentrum / Computing CentreSmail: Kaerntnerstrasse 16, A-4020 Linz, Austria (Europe)Phone: +43 732 7720 - 3394 Fax: +43 732 7720 - 3198Email: Klaus.Kusche@ooe.gv.at
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -