1
来自「Unix/Linux 网络时间协议版本3 Network Time Proto」· 代码 · 共 64 行
TXT
64 行
Replied: Wed, 06 Nov 1996 21:57:09 -0500Replied: "Peter K <pko@paradigm-sa.com> "David L. Mills" <mills@udel.edu>"Replied: Wed, 06 Nov 1996 17:41:35 -0500Replied: "Peter K <pko@paradigm-sa.com> "David L. Mills" <mills@udel.edu>"Received: from copland.udel.edu by huey.udel.edu id aa02507; 5 Nov 96 9:38 ESTReceived: from kiko.paradigm-sa.com (pko@kiko.paradigm-sa.com [192.96.90.2]) by copland.udel.edu (8.7.6/8.7.3) with ESMTP id JAA06126 for <mills@udel.edu>; Tue, 5 Nov 1996 09:37:55 -0500 (EST)Received: from localhost (pko@localhost) by kiko.paradigm-sa.com (8.8.2/8.8.2) with SMTP id QAA04289 for <mills@udel.edu>; Tue, 5 Nov 1996 16:37:26 +0200X-Authentication-Warning: kiko.paradigm-sa.com: pko owned process doing -bsDate: Tue, 5 Nov 1996 16:37:26 +0200 (GMT+0200)From: Peter K <pko@paradigm-sa.com>To: "David L. Mills" <mills@udel.edu>Subject: xntp3.5fMessage-ID: <Pine.LNX.3.95.961105162847.206B-100000@kiko.paradigm-sa.com>MIME-Version: 1.0Content-Type: TEXT/PLAIN; charset=US-ASCIIHiWhile compiling xntp for Linux 2.1.7 I ran into some gcc warnings. Thefollowing diffs seem to be applicable from at least Linux 2.0.0. The firstpatch pertains to the hto??() calls, the seconf to atoi() while the third isself-explanatory.--- include/ntp_stdlib.h.orig Sun Jun 18 14:21:05 1995+++ include/ntp_stdlib.h Tue Nov 5 15:40:20 1996@@ -7,6 +7,10 @@ #include "ntp_string.h" #include "l_stdlib.h" +#ifdef SYS_LINUX+#include <asm/byteorder.h>+#endif+ #ifndef P #if defined(__STDC__) || defined(USE_PROTOTYPES) #define P(x) x--- util/tickadj.c.orig Sat Apr 13 22:47:44 1996+++ util/tickadj.c Tue Nov 5 15:49:26 1996@@ -13,6 +13,7 @@ #ifdef SYS_LINUX #include <sys/timex.h>+#include <stdlib.h> struct timex txc; @@ -47,7 +48,7 @@ if (__adjtimex(&txc) < 0) perror("adjtimex"); else- printf("tick = %d\n", txc.tick);+ printf("tick = %ld\n", txc.tick); return(0); }Peter Kooiman | Fax : +27-12-663-4191/2Paradigm Systems Technology | Cell : +27-82-651-4985Pretoria, South Africa | UUCP : pko@silmaril.UUCPVoice : +27-12-672-5700/10 | e-mail : pko@paradigm-sa.com
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?