Replied: Wed, 06 Nov 1996 21:57:09 -0500
Replied: "Peter K <pko@paradigm-sa.com> "David L. Mills" <mills@udel.edu>"
Replied: Wed, 06 Nov 1996 17:41:35 -0500
Replied: "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 EST
Received: 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 +0200
X-Authentication-Warning: kiko.paradigm-sa.com: pko owned process doing -bs
Date: 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.5f
Message-ID: <Pine.LNX.3.95.961105162847.206B-100000@kiko.paradigm-sa.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi

While compiling xntp for Linux 2.1.7 I ran into some gcc warnings.  The
following diffs seem to be applicable from at least Linux 2.0.0.  The first
patch pertains to the hto??() calls, the seconf to atoi() while the third is
self-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/2
Paradigm Systems Technology        | Cell   : +27-82-651-4985
Pretoria, South Africa             | UUCP   : pko@silmaril.UUCP
Voice : +27-12-672-5700/10         | e-mail : pko@paradigm-sa.com

