]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 796] Clean up duplicate #defines in ntp_control.c
authorHarlan Stenn <stenn@ntp.org>
Tue, 20 Mar 2007 06:00:23 +0000 (01:00 -0500)
committerHarlan Stenn <stenn@ntp.org>
Tue, 20 Mar 2007 06:00:23 +0000 (01:00 -0500)
bk: 45ff7877-b-QK08mtEUYReMrGtKmzw

ChangeLog
ntpd/ntp_control.c

index 7f5a18c2128b2c67e73e2b0e288064e542ff7dcd..e86e234257c560532aabe2916b6543a867dba852 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,4 @@
+* [Bug 796] Clean up duplicate #defines in ntp_control.c.
 * [Bug 569] Use the correct precision for the Leitch CSD-5300.
 * [Bug 795] Moved declaration of variable to top of function.
 * [Bug 798] ntpq [p typo crashes ntpq/ntpdc.
index a16811533d600c0913a75d01c1e69f13df9da142..0c24be8a2134dad2bda8e55a76ceaa16100fb185 100644 (file)
 /*
  * Structure to hold request procedure information
  */
-#define NOAUTH 0
-#define AUTH   1
-
-#define NO_REQUEST     (-1)
 
 struct ctl_proc {
        short control_code;             /* defined request code */
+#define NO_REQUEST     (-1)
        u_short flags;                  /* flags word */
+               /* Only one flag.  Authentication required or not. */
+#define NOAUTH 0
+#define AUTH   1
        void (*handler) (struct recvbuf *, int); /* handle request */
 };
 
-/*
- * Only one flag.  Authentication required or not.
- */
-#define NOAUTH 0
-#define AUTH   1
 
 /*
  * Request processing routines