Fix a serious bug in the NTPD loopfilter. Basically what happens is that
[dragonfly.git] / contrib / ntp / include / global.h
1 /* GLOBAL.H - RSAREF types and constants */
2
3 /* Copyright (C) RSA Laboratories, a division of RSA Data Security,
4      Inc., created 1991. All rights reserved.
5  */
6
7 /*
8  * Note: the modifications are necessary for little-endian machines
9  */
10 #include "ntp_types.h"                  /* local modification */
11
12 #ifndef _GLOBAL_H_
13 #define _GLOBAL_H_ 1
14
15 /* PROTOTYPES should be set to one if and only if the compiler supports
16      function argument prototyping.
17    The following makes PROTOTYPES default to 1 if it has not already been
18      defined as 0 with C compiler flags.
19  */
20 #ifdef HAVE_PROTOTYPES
21 #define PROTOTYPES 1
22 #endif
23
24 /* POINTER defines a generic pointer type */
25 typedef unsigned char *POINTER;
26
27 /* UINT2 defines a two byte word */
28 typedef unsigned short int UINT2;
29
30 /* UINT4 defines a four byte word */
31 typedef u_int32 UINT4;                  /* local modification */
32
33 /* BYTE defines a unsigned character */
34 typedef unsigned char BYTE;             /* local modification for RSAEuro */
35
36 #ifndef NULL_PTR
37 #define NULL_PTR ((POINTER)0)
38 #endif
39
40 #ifndef UNUSED_ARG
41 #define UNUSED_ARG(x) x = *(&x);
42 #endif
43
44 /* PROTO_LIST is defined depending on how PROTOTYPES is defined above.
45    If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it
46      returns an empty list.  
47  */
48 #if PROTOTYPES
49 #define PROTO_LIST(list) list
50 #else
51 #define PROTO_LIST(list) ()
52 #endif
53
54 #endif /* end _GLOBAL_H_ */