From: Harlan Stenn Date: Tue, 29 Jul 2008 23:04:34 +0000 (-0400) Subject: cleanups X-Git-Tag: NTP_4_2_5P142~26^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=233dbfea781c0df07016f22e58ddf721bcb6e56b;p=thirdparty%2Fntp.git cleanups bk: 488fa202VcFe6DqwliAlSYpb49HJaw --- diff --git a/gsoc_sntp/configure.ac b/gsoc_sntp/configure.ac index 007b9fe82..eaf69fab0 100644 --- a/gsoc_sntp/configure.ac +++ b/gsoc_sntp/configure.ac @@ -79,7 +79,7 @@ AC_TYPE_UID_T AC_DEFINE(HAVE_NO_NICE, 1, [sntp does not care about 'nice']) AC_DEFINE(HAVE_TERMIOS, 1, [sntp does not care about TTY stuff]) AC_DEFINE(ISC_PLATFORM_HAVEIPV6, 1, [hack]) - +AC_DEFINE(HAVE_STRUCT_SOCKADDR_STORAGE, 1, [Does a system header define struct sockaddr_storage?]) # Checks for library functions. diff --git a/gsoc_sntp/header.h b/gsoc_sntp/header.h index c752d1554..1a4b85dc0 100644 --- a/gsoc_sntp/header.h +++ b/gsoc_sntp/header.h @@ -15,7 +15,6 @@ No changes should be needed for any system that is even remotely like Unix. */ -#define VERSION "1.6" /* Just the version string */ #define MAX_SOCKETS 10 /* Maximum number of addresses */ #ifndef LOCKNAME diff --git a/gsoc_sntp/main.c b/gsoc_sntp/main.c index 26d450235..225a7f8ce 100644 --- a/gsoc_sntp/main.c +++ b/gsoc_sntp/main.c @@ -1,18 +1,23 @@ -#include "networking.h" -#include "header.h" - +#if 0 #include #include #include #include +#endif -#include #include +#include + +#include "networking.h" +#include "header.h" + #define NTP_PORT 123 int ai_fam_tmpl; +volatile int debug; + int main ( diff --git a/gsoc_sntp/networking.h b/gsoc_sntp/networking.h index 3c917139e..bf034c94a 100644 --- a/gsoc_sntp/networking.h +++ b/gsoc_sntp/networking.h @@ -12,6 +12,8 @@ #include /**/ #include /**/ +#include + #include "data_formats.h" /* FIXME, see portability issue 1 */ /* irrelevant for now */ @@ -26,7 +28,6 @@ /* Maximum number of sockets... should be specified in sntp.h later */ #define MAX_AF 2 - int descriptors[MAX_AF];