]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Remove tailing \n's from msyslog output strings
authorHarlan Stenn <stenn@ntp.org>
Sat, 6 Jul 2013 05:36:33 +0000 (22:36 -0700)
committerHarlan Stenn <stenn@ntp.org>
Sat, 6 Jul 2013 05:36:33 +0000 (22:36 -0700)
bk: 51d7ace1P-kHakzioKF9nyzXcdK0wQ

29 files changed:
libntp/audio.c
libntp/ssl_init.c
libntp/work_fork.c
libntp/work_thread.c
libparse/clk_rawdcf.c
libparse/parse.c
ntpd/ntp_config.c
ntpd/ntp_control.c
ntpd/ntp_crypto.c
ntpd/ntp_parser.c
ntpd/ntp_parser.h
ntpd/ntp_parser.y
ntpd/ntp_proto.c
ntpd/ntp_timer.c
ntpd/ntpd.c
ntpd/refclock_arc.c
ntpd/refclock_bancomm.c
ntpd/refclock_datum.c
ntpd/refclock_hopfpci.c
ntpd/refclock_msfees.c
ntpd/refclock_palisade.c
ntpd/refclock_ripencc.c
ntpd/refclock_tsyncpci.c
ntpdate/ntpdate.c
ports/winnt/libntp/SetSystemTime.c
ports/winnt/libntp/win32_io.c
ports/winnt/ntpd/nt_clockstuff.c
sntp/main.c
sntp/networking.c

index 921f2713efbf9a94244e00e247b6348ebc2ab40a..2a56619827f47f03b6a9f3f59d4afe3e80b8abb2 100644 (file)
@@ -251,7 +251,7 @@ audio_init(
         */
        fd = open(dname, O_RDWR | O_NONBLOCK, 0777);
        if (fd < 0) {
-               msyslog(LOG_ERR, "audio_init: %s %m\n", dname);
+               msyslog(LOG_ERR, "audio_init: %s %m", dname);
                return (fd);
        }
 
@@ -260,7 +260,7 @@ audio_init(
         */
        ctl_fd = open(actl, O_RDWR);
        if (ctl_fd < 0) {
-               msyslog(LOG_ERR, "audio_init: invalid control device <%s>\n",
+               msyslog(LOG_ERR, "audio_init: invalid control device <%s>",
                    actl);
                close(fd);
                return(ctl_fd);
@@ -349,7 +349,7 @@ audio_init(
 # endif /* HAVE_SYS_AUDIOIO_H */
        rval = ioctl(ctl_fd, (int)AUDIO_SETINFO, (char *)&info);
        if (rval < 0) {
-               msyslog(LOG_ERR, "audio: invalid control device parameters\n");
+               msyslog(LOG_ERR, "audio: invalid control device parameters");
                close(ctl_fd);
                close(fd);
                return(rval);
index 7cb37594eaeae244bc872ce5ac596f13c52e7e5c..7f1e9a096b209fb6dab59da4e8fb6ff318a78d22 100644 (file)
@@ -53,7 +53,7 @@ ssl_check_version(void)
 {
        if ((SSLeay() ^ OPENSSL_VERSION_NUMBER) & ~0xff0L) {
                msyslog(LOG_WARNING,
-                   "OpenSSL version mismatch. Built against %lx, you have %lx\n",
+                   "OpenSSL version mismatch. Built against %lx, you have %lx",
                    (u_long)OPENSSL_VERSION_NUMBER, SSLeay());
                fprintf(stderr,
                    "OpenSSL version mismatch. Built against %lx, you have %lx\n",
@@ -118,7 +118,7 @@ keytype_from_text(
                                keytype_name(key_type), digest_len,
                                max_digest_len);
                        msyslog(LOG_ERR,
-                               "key type %s %u octet digests are too big, max %lu\n",
+                               "key type %s %u octet digests are too big, max %lu",
                                keytype_name(key_type), digest_len,
                                max_digest_len);
                        return 0;
index 1c852c3659bcc1ad7e7e20002697eeb9be173cd4..27b8a096574712990dd171560836bebd479b8e68 100644 (file)
@@ -204,7 +204,7 @@ send_blocking_req_internal(
                        "send_blocking_req_internal: pipe write: %m");
        else
                msyslog(LOG_ERR,
-                       "send_blocking_req_internal: short write %d of %d\n",
+                       "send_blocking_req_internal: short write %d of %d",
                        rc, octets);
 
        exit(1);        /* otherwise would be return -1 */
@@ -231,13 +231,13 @@ receive_blocking_req_internal(
 
        if (rc < 0) {
                msyslog(LOG_ERR,
-                       "receive_blocking_req_internal: pipe read %m\n");
+                       "receive_blocking_req_internal: pipe read %m");
        } else if (0 == rc) {
                TRACE(4, ("parent closed request pipe, child %d terminating\n",
                          c->pid));
        } else if (rc != sizeof(hdr)) {
                msyslog(LOG_ERR,
-                       "receive_blocking_req_internal: short header read %d of %lu\n",
+                       "receive_blocking_req_internal: short header read %d of %lu",
                        rc, (u_long)sizeof(hdr));
        } else {
                INSIST(sizeof(hdr) < hdr.octets && hdr.octets < 4 * 1024);
@@ -249,10 +249,10 @@ receive_blocking_req_internal(
 
                if (rc < 0)
                        msyslog(LOG_ERR,
-                               "receive_blocking_req_internal: pipe data read %m\n");
+                               "receive_blocking_req_internal: pipe data read %m");
                else if (rc != octets)
                        msyslog(LOG_ERR,
-                               "receive_blocking_req_internal: short read %d of %ld\n",
+                               "receive_blocking_req_internal: short read %d of %ld",
                                rc, octets);
                else if (BLOCKING_REQ_MAGIC != req->magic_sig)
                        msyslog(LOG_ERR,
index 6c3e6656bceebeef111de2d9e4119cf05b4c22c4..df1dfe4a73c9f1aebb21e6f0fc3edec87d54246d 100644 (file)
@@ -386,7 +386,7 @@ start_blocking_thread_internal(
                        &blocking_thread_id);
 
        if (NULL == blocking_child_thread) {
-               msyslog(LOG_ERR, "start blocking thread failed: %m\n");
+               msyslog(LOG_ERR, "start blocking thread failed: %m");
                exit(-1);
        }
        c->thread_id = blocking_thread_id;
@@ -394,7 +394,7 @@ start_blocking_thread_internal(
        /* remember the thread priority is only within the process class */
        if (!SetThreadPriority(blocking_child_thread,
                               THREAD_PRIORITY_BELOW_NORMAL))
-               msyslog(LOG_ERR, "Error lowering blocking thread priority: %m\n");
+               msyslog(LOG_ERR, "Error lowering blocking thread priority: %m");
 
        resumed = ResumeThread(blocking_child_thread);
        DEBUG_INSIST(resumed);
index 20b3bf281b73d85e3e96ea7cee7271f8fd85cc12..98848bee8fb0318fda95ac080fd7ce7362e560c3 100644 (file)
@@ -234,7 +234,7 @@ convert_rawdcf(
        if (size < 57)
        {
 #ifndef PARSEKERNEL
-               msyslog(LOG_ERR, "parse: convert_rawdcf: INCOMPLETE DATA - time code only has %d bits\n", size);
+               msyslog(LOG_ERR, "parse: convert_rawdcf: INCOMPLETE DATA - time code only has %d bits", size);
 #endif
                return CVT_NONE;
        }
@@ -320,7 +320,7 @@ convert_rawdcf(
                 * bad format - not for us
                 */
 #ifndef PARSEKERNEL
-               msyslog(LOG_ERR, "parse: convert_rawdcf: parity check FAILED for \"%s\"\n", buffer);
+               msyslog(LOG_ERR, "parse: convert_rawdcf: parity check FAILED for \"%s\"", buffer);
 #endif
                return CVT_FAIL|CVT_BADFMT;
        }
index e9e3a9c942adc67e317150601d4508bd2f6dd225..85e5299cb195d01a5dad1254bebc55b3f6510987 100644 (file)
@@ -715,7 +715,7 @@ timepacket(
        default:
                /* shouldn't happen */
 #ifndef PARSEKERNEL
-               msyslog(LOG_WARNING, "parse: INTERNAL error: bad return code of convert routine \"%s\"\n", clockformats[format]->name);
+               msyslog(LOG_WARNING, "parse: INTERNAL error: bad return code of convert routine \"%s\"", clockformats[format]->name);
 #endif   
                return CVT_FAIL|cvtrtc;
        }
index ca3fa6aac4747103a1748b961d19793ac7400686..28639af8592ca2d188834b3a8911303ac36e8b84 100644 (file)
@@ -2609,7 +2609,7 @@ config_rlimit(
                                   "MB");
 #else
                        /* STDERR as well would be fine... */
-                       msyslog(LOG_WARNING, "'rlimit memlock' specified but is not available on this system.\n");
+                       msyslog(LOG_WARNING, "'rlimit memlock' specified but is not available on this system.");
 #endif /* !(HAVE_MLOCKALL && RLIMIT_MEMLOCK) */
                        break;
 
@@ -2621,7 +2621,7 @@ config_rlimit(
                                   "4k");
 #else
                        /* STDERR as well would be fine... */
-                       msyslog(LOG_WARNING, "'rlimit stacksize' specified but is not available on this system.\n");
+                       msyslog(LOG_WARNING, "'rlimit stacksize' specified but is not available on this system.");
 #endif /* !(HAVE_MLOCKALL && RLIMIT_STACK) */
                        break;
                }
@@ -3389,7 +3389,7 @@ config_fudge(
 
                        default:
                                msyslog(LOG_ERR,
-                                       "Unexpected fudge flag %s (%d) for %s\n",
+                                       "Unexpected fudge flag %s (%d) for %s",
                                        token_name(curr_opt->attr),
                                        curr_opt->attr, stoa(&addr_sock));
                                exit(curr_opt->attr ? curr_opt->attr : 1);
@@ -3439,7 +3439,7 @@ config_vars(
                case T_Driftfile:
                        if ('\0' == curr_var->value.s[0]) {
                                stats_drift_file = 0;
-                               msyslog(LOG_INFO, "config: driftfile disabled\n");
+                               msyslog(LOG_INFO, "config: driftfile disabled");
                        } else
                                stats_config(STATS_FREQ_FILE, curr_var->value.s);
                        break;
@@ -3706,7 +3706,7 @@ config_peers(
                                             (void *)ctx);
 # else /* !WORKER follows */
                        msyslog(LOG_ERR,
-                               "hostname %s can not be used, please use IP address instead.\n",
+                               "hostname %s can not be used, please use IP address instead.",
                                curr_peer->addr->address);
 # endif
                }
@@ -3783,7 +3783,7 @@ config_peers(
                                             &peer_name_resolved, ctx);
 # else /* !WORKER follows */
                        msyslog(LOG_ERR,
-                               "hostname %s can not be used, please use IP address instead.\n",
+                               "hostname %s can not be used, please use IP address instead.",
                                curr_peer->addr->address);
 # endif
                }
@@ -3964,7 +3964,7 @@ config_unpeers(
                                     &unpeer_name_resolved, NULL);
 # else /* !WORKER follows */
                msyslog(LOG_ERR,
-                       "hostname %s can not be used, please use IP address instead.\n",
+                       "hostname %s can not be used, please use IP address instead.",
                        name);
 # endif
        }
@@ -4351,7 +4351,7 @@ getconfig(
        temp = CONFIG_FILE;
        if (!ExpandEnvironmentStringsA(temp, config_file_storage,
                                       sizeof(config_file_storage))) {
-               msyslog(LOG_ERR, "ExpandEnvironmentStrings CONFIG_FILE failed: %m\n");
+               msyslog(LOG_ERR, "ExpandEnvironmentStrings CONFIG_FILE failed: %m");
                exit(1);
        }
        config_file = config_file_storage;
@@ -4359,7 +4359,7 @@ getconfig(
        temp = ALT_CONFIG_FILE;
        if (!ExpandEnvironmentStringsA(temp, alt_config_file_storage,
                                       sizeof(alt_config_file_storage))) {
-               msyslog(LOG_ERR, "ExpandEnvironmentStrings ALT_CONFIG_FILE failed: %m\n");
+               msyslog(LOG_ERR, "ExpandEnvironmentStrings ALT_CONFIG_FILE failed: %m");
                exit(1);
        }
        alt_config_file = alt_config_file_storage;
index 28073133f5354566cdfebf784ca0413bd3e87d77..4dea934af8ecbec4f5cad7ec66538c4650b4f8cc 100644 (file)
@@ -2883,7 +2883,7 @@ ctl_getitem(
                                                                if (quiet_until <= current_time) {
                                                                        quiet_until = current_time + 300;
                                                                        msyslog(LOG_WARNING,
-"Possible 'ntpdx' exploit from %s#%u (possibly spoofed)\n", stoa(rmt_addr), SRCPORT(rmt_addr));
+"Possible 'ntpdx' exploit from %s#%u (possibly spoofed)", stoa(rmt_addr), SRCPORT(rmt_addr));
                                                                }
                                                        return NULL;
                                                }
index 3c0ae9792db7a17190dc544f406758d9a281a3b2..6c6734763efaf36841abe7f090a4da59e4ba30f2 100644 (file)
@@ -3581,13 +3581,13 @@ crypto_cert(
                return (NULL);
        }
        if ((ptr = strrchr(ptr, '.')) == NULL) {
-               msyslog(LOG_ERR, "crypto_cert: no filestamp %s\n",
+               msyslog(LOG_ERR, "crypto_cert: no filestamp %s",
                    filename);
                fclose(str);
                return (NULL);
        }
        if (sscanf(++ptr, "%u", &fstamp) != 1) {
-               msyslog(LOG_ERR, "crypto_cert: invalid filestamp %s\n",
+               msyslog(LOG_ERR, "crypto_cert: invalid filestamp %s",
                    filename);
                fclose(str);
                return (NULL);
@@ -3597,7 +3597,7 @@ crypto_cert(
         * Read PEM-encoded certificate and install.
         */
        if (!PEM_read(str, &name, &header, &data, &len)) {
-               msyslog(LOG_ERR, "crypto_cert: %s\n",
+               msyslog(LOG_ERR, "crypto_cert: %s",
                    ERR_error_string(ERR_get_error(), NULL));
                fclose(str);
                return (NULL);
index 5e126d939c713726e008781e412e2fbd6f146486..db336113cd6049ba70c9f913ec7950139b8a0bcf 100644 (file)
@@ -1,22 +1,24 @@
-/* A Bison parser, made by GNU Bison 2.4.3.  */
+/* A Bison parser, made by GNU Bison 2.3.  */
 
 /* Skeleton implementation for Bison's Yacc-like parsers in C
-   
-      Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
-   2009, 2010 Free Software Foundation, Inc.
-   
-   This program is free software: you can redistribute it and/or modify
+
+   Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+   Free Software Foundation, Inc.
+
+   This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
-   the Free Software Foundation, either version 3 of the License, or
-   (at your option) any later version.
-   
+   the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
-   
+
    You should have received a copy of the GNU General Public License
-   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin Street, Fifth Floor,
+   Boston, MA 02110-1301, USA.  */
 
 /* As a special exception, you may create a larger work that contains
    part or all of the Bison parser skeleton and distribute that work
@@ -27,7 +29,7 @@
    special exception, which will cause the skeleton and the resulting
    Bison output files to be licensed under the GNU General Public
    License without this special exception.
-   
+
    This special exception was added by the Free Software Foundation in
    version 2.2 of Bison.  */
 
@@ -45,7 +47,7 @@
 #define YYBISON 1
 
 /* Bison version.  */
-#define YYBISON_VERSION "2.4.3"
+#define YYBISON_VERSION "2.3"
 
 /* Skeleton name.  */
 #define YYSKELETON_NAME "yacc.c"
 /* Pure parsers.  */
 #define YYPURE 0
 
-/* Push parsers.  */
-#define YYPUSH 0
-
-/* Pull parsers.  */
-#define YYPULL 1
-
 /* Using locations.  */
 #define YYLSP_NEEDED 0
 
 
 
-/* Copy the first part of user declarations.  */
-
-/* Line 189 of yacc.c  */
-#line 11 "ntp_parser.y"
-
-  #ifdef HAVE_CONFIG_H
-  # include <config.h>
-  #endif
-
-  #include "ntp.h"
-  #include "ntpd.h"
-  #include "ntp_machine.h"
-  #include "ntp_stdlib.h"
-  #include "ntp_filegen.h"
-  #include "ntp_scanner.h"
-  #include "ntp_config.h"
-  #include "ntp_crypto.h"
-
-  #include "ntpsim.h"          /* HMS: Do we really want this all the time? */
-                               /* SK: It might be a good idea to always
-                                  include the simulator code. That way
-                                  someone can use the same configuration file
-                                  for both the simulator and the daemon
-                               */
-
-
-  struct FILE_INFO *ip_file;   /* configuration file stream */
-
-  #define YYMALLOC     emalloc
-  #define YYFREE       free
-  #define YYERROR_VERBOSE
-  #define YYMAXDEPTH   1000    /* stop the madness sooner */
-  void yyerror(const char *msg);
-  extern int input_from_file;  /* else from ntpq :config */
-
-
-/* Line 189 of yacc.c  */
-#line 105 "ntp_parser.c"
-
-/* Enabling traces.  */
-#ifndef YYDEBUG
-# define YYDEBUG 1
-#endif
-
-/* Enabling verbose error messages.  */
-#ifdef YYERROR_VERBOSE
-# undef YYERROR_VERBOSE
-# define YYERROR_VERBOSE 1
-#else
-# define YYERROR_VERBOSE 0
-#endif
-
-/* Enabling the token table.  */
-#ifndef YYTOKEN_TABLE
-# define YYTOKEN_TABLE 1
-#endif
-
-
 /* Tokens.  */
 #ifndef YYTOKENTYPE
 # define YYTOKENTYPE
 
 
 
+/* Copy the first part of user declarations.  */
+#line 11 "ntp_parser.y"
+
+  #ifdef HAVE_CONFIG_H
+  # include <config.h>
+  #endif
+
+  #include "ntp.h"
+  #include "ntpd.h"
+  #include "ntp_machine.h"
+  #include "ntp_stdlib.h"
+  #include "ntp_filegen.h"
+  #include "ntp_scanner.h"
+  #include "ntp_config.h"
+  #include "ntp_crypto.h"
+
+  #include "ntpsim.h"          /* HMS: Do we really want this all the time? */
+                               /* SK: It might be a good idea to always
+                                  include the simulator code. That way
+                                  someone can use the same configuration file
+                                  for both the simulator and the daemon
+                               */
+
+
+  struct FILE_INFO *ip_file;   /* configuration file stream */
+
+  #define YYMALLOC     emalloc
+  #define YYFREE       free
+  #define YYERROR_VERBOSE
+  #define YYMAXDEPTH   1000    /* stop the madness sooner */
+  void yyerror(const char *msg);
+  extern int input_from_file;  /* else from ntpq :config */
+
+
+/* Enabling traces.  */
+#ifndef YYDEBUG
+# define YYDEBUG 1
+#endif
+
+/* Enabling verbose error messages.  */
+#ifdef YYERROR_VERBOSE
+# undef YYERROR_VERBOSE
+# define YYERROR_VERBOSE 1
+#else
+# define YYERROR_VERBOSE 0
+#endif
+
+/* Enabling the token table.  */
+#ifndef YYTOKEN_TABLE
+# define YYTOKEN_TABLE 1
+#endif
+
 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
 typedef union YYSTYPE
-{
-
-/* Line 214 of yacc.c  */
 #line 49 "ntp_parser.y"
-
+{
        char *                  String;
        double                  Double;
        int                     Integer;
@@ -528,23 +515,22 @@ typedef union YYSTYPE
        server_info_fifo *      Sim_server_fifo;
        script_info *           Sim_script;
        script_info_fifo *      Sim_script_fifo;
-
-
-
-/* Line 214 of yacc.c  */
-#line 536 "ntp_parser.c"
-} YYSTYPE;
-# define YYSTYPE_IS_TRIVIAL 1
+}
+/* Line 193 of yacc.c.  */
+#line 521 "../../ntpd/ntp_parser.c"
+       YYSTYPE;
 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
 # define YYSTYPE_IS_DECLARED 1
+# define YYSTYPE_IS_TRIVIAL 1
 #endif
 
 
+
 /* Copy the second part of user declarations.  */
 
 
-/* Line 264 of yacc.c  */
-#line 548 "ntp_parser.c"
+/* Line 216 of yacc.c.  */
+#line 534 "../../ntpd/ntp_parser.c"
 
 #ifdef short
 # undef short
@@ -619,14 +605,14 @@ typedef short int yytype_int16;
 #if (defined __STDC__ || defined __C99__FUNC__ \
      || defined __cplusplus || defined _MSC_VER)
 static int
-YYID (int yyi)
+YYID (int i)
 #else
 static int
-YYID (yyi)
-    int yyi;
+YYID (i)
+    int i;
 #endif
 {
-  return yyi;
+  return i;
 }
 #endif
 
@@ -707,9 +693,9 @@ void free (void *); /* INFRINGES ON USER NAME SPACE */
 /* A type that is properly aligned for any stack member.  */
 union yyalloc
 {
-  yytype_int16 yyss_alloc;
-  YYSTYPE yyvs_alloc;
-};
+  yytype_int16 yyss;
+  YYSTYPE yyvs;
+  };
 
 /* The size of the maximum gap between one aligned stack and the next.  */
 # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
@@ -743,12 +729,12 @@ union yyalloc
    elements in the stack, and YYPTR gives the new location of the
    stack.  Advance YYPTR to a properly aligned location for the next
    stack.  */
-# define YYSTACK_RELOCATE(Stack_alloc, Stack)                          \
+# define YYSTACK_RELOCATE(Stack)                                       \
     do                                                                 \
       {                                                                        \
        YYSIZE_T yynewbytes;                                            \
-       YYCOPY (&yyptr->Stack_alloc, Stack, yysize);                    \
-       Stack = &yyptr->Stack_alloc;                                    \
+       YYCOPY (&yyptr->Stack, Stack, yysize);                          \
+       Stack = &yyptr->Stack;                                          \
        yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
        yyptr += yynewbytes / sizeof (*yyptr);                          \
       }                                                                        \
@@ -1471,18 +1457,9 @@ static const yytype_uint16 yystos[] =
 
 /* Like YYERROR except do call yyerror.  This remains here temporarily
    to ease the transition to the new meaning of YYERROR, for GCC.
-   Once GCC version 2 has supplanted version 1, this can go.  However,
-   YYFAIL appears to be in use.  Nevertheless, it is formally deprecated
-   in Bison 2.4.2's NEWS entry, where a plan to phase it out is
-   discussed.  */
+   Once GCC version 2 has supplanted version 1, this can go.  */
 
 #define YYFAIL         goto yyerrlab
-#if defined YYFAIL
-  /* This is here to suppress warnings from the GCC cpp's
-     -Wunused-macros.  Normally we don't worry about that warning, but
-     some users do, and we want to make it easy for users to remove
-     YYFAIL uses, which will produce warnings from Bison 2.5.  */
-#endif
 
 #define YYRECOVERING()  (!!yyerrstatus)
 
@@ -1650,20 +1627,17 @@ yy_symbol_print (yyoutput, yytype, yyvaluep)
 #if (defined __STDC__ || defined __C99__FUNC__ \
      || defined __cplusplus || defined _MSC_VER)
 static void
-yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
+yy_stack_print (yytype_int16 *bottom, yytype_int16 *top)
 #else
 static void
-yy_stack_print (yybottom, yytop)
-    yytype_int16 *yybottom;
-    yytype_int16 *yytop;
+yy_stack_print (bottom, top)
+    yytype_int16 *bottom;
+    yytype_int16 *top;
 #endif
 {
   YYFPRINTF (stderr, "Stack now");
-  for (; yybottom <= yytop; yybottom++)
-    {
-      int yybot = *yybottom;
-      YYFPRINTF (stderr, " %d", yybot);
-    }
+  for (; bottom <= top; ++bottom)
+    YYFPRINTF (stderr, " %d", *bottom);
   YYFPRINTF (stderr, "\n");
 }
 
@@ -1697,11 +1671,11 @@ yy_reduce_print (yyvsp, yyrule)
   /* The symbols being reduced.  */
   for (yyi = 0; yyi < yynrhs; yyi++)
     {
-      YYFPRINTF (stderr, "   $%d = ", yyi + 1);
+      fprintf (stderr, "   $%d = ", yyi + 1);
       yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
                       &(yyvsp[(yyi + 1) - (yynrhs)])
                                       );
-      YYFPRINTF (stderr, "\n");
+      fprintf (stderr, "\n");
     }
 }
 
@@ -1981,8 +1955,10 @@ yydestruct (yymsg, yytype, yyvaluep)
        break;
     }
 }
+\f
 
 /* Prevent warnings from -Wmissing-prototypes.  */
+
 #ifdef YYPARSE_PARAM
 #if defined __STDC__ || defined __cplusplus
 int yyparse (void *YYPARSE_PARAM);
@@ -1998,10 +1974,11 @@ int yyparse ();
 #endif /* ! YYPARSE_PARAM */
 
 
-/* The lookahead symbol.  */
+
+/* The look-ahead symbol.  */
 int yychar;
 
-/* The semantic value of the lookahead symbol.  */
+/* The semantic value of the look-ahead symbol.  */
 YYSTYPE yylval;
 
 /* Number of syntax errors so far.  */
@@ -2009,9 +1986,9 @@ int yynerrs;
 
 
 
-/*-------------------------.
-| yyparse or yypush_parse.  |
-`-------------------------*/
+/*----------.
+| yyparse.  |
+`----------*/
 
 #ifdef YYPARSE_PARAM
 #if (defined __STDC__ || defined __C99__FUNC__ \
@@ -2035,68 +2012,66 @@ yyparse ()
 #endif
 #endif
 {
+  
+  int yystate;
+  int yyn;
+  int yyresult;
+  /* Number of tokens to shift before error messages enabled.  */
+  int yyerrstatus;
+  /* Look-ahead token as an internal (translated) token number.  */
+  int yytoken = 0;
+#if YYERROR_VERBOSE
+  /* Buffer for error messages, and its allocated size.  */
+  char yymsgbuf[128];
+  char *yymsg = yymsgbuf;
+  YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
+#endif
 
+  /* Three stacks and their tools:
+     `yyss': related to states,
+     `yyvs': related to semantic values,
+     `yyls': related to locations.
 
-    int yystate;
-    /* Number of tokens to shift before error messages enabled.  */
-    int yyerrstatus;
+     Refer to the stacks thru separate pointers, to allow yyoverflow
+     to reallocate them elsewhere.  */
 
-    /* The stacks and their tools:
-       `yyss': related to states.
-       `yyvs': related to semantic values.
+  /* The state stack.  */
+  yytype_int16 yyssa[YYINITDEPTH];
+  yytype_int16 *yyss = yyssa;
+  yytype_int16 *yyssp;
 
-       Refer to the stacks thru separate pointers, to allow yyoverflow
-       to reallocate them elsewhere.  */
+  /* The semantic value stack.  */
+  YYSTYPE yyvsa[YYINITDEPTH];
+  YYSTYPE *yyvs = yyvsa;
+  YYSTYPE *yyvsp;
 
-    /* The state stack.  */
-    yytype_int16 yyssa[YYINITDEPTH];
-    yytype_int16 *yyss;
-    yytype_int16 *yyssp;
 
-    /* The semantic value stack.  */
-    YYSTYPE yyvsa[YYINITDEPTH];
-    YYSTYPE *yyvs;
-    YYSTYPE *yyvsp;
 
-    YYSIZE_T yystacksize;
+#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))
+
+  YYSIZE_T yystacksize = YYINITDEPTH;
 
-  int yyn;
-  int yyresult;
-  /* Lookahead token as an internal (translated) token number.  */
-  int yytoken;
   /* The variables used to return semantic value and location from the
      action routines.  */
   YYSTYPE yyval;
 
-#if YYERROR_VERBOSE
-  /* Buffer for error messages, and its allocated size.  */
-  char yymsgbuf[128];
-  char *yymsg = yymsgbuf;
-  YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
-#endif
-
-#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))
 
   /* The number of symbols on the RHS of the reduced rule.
      Keep to zero when no symbol should be popped.  */
   int yylen = 0;
 
-  yytoken = 0;
-  yyss = yyssa;
-  yyvs = yyvsa;
-  yystacksize = YYINITDEPTH;
-
   YYDPRINTF ((stderr, "Starting parse\n"));
 
   yystate = 0;
   yyerrstatus = 0;
   yynerrs = 0;
-  yychar = YYEMPTY; /* Cause a token to be read.  */
+  yychar = YYEMPTY;            /* Cause a token to be read.  */
 
   /* Initialize stack pointers.
      Waste one element of value and location stack
      so that they stay on the same level as the state stack.
      The wasted elements are never initialized.  */
+
   yyssp = yyss;
   yyvsp = yyvs;
 
@@ -2126,6 +2101,7 @@ yyparse ()
        YYSTYPE *yyvs1 = yyvs;
        yytype_int16 *yyss1 = yyss;
 
+
        /* Each stack pointer address is followed by the size of the
           data in use in that stack, in bytes.  This used to be a
           conditional around just the two extra args, but that might
@@ -2133,6 +2109,7 @@ yyparse ()
        yyoverflow (YY_("memory exhausted"),
                    &yyss1, yysize * sizeof (*yyssp),
                    &yyvs1, yysize * sizeof (*yyvsp),
+
                    &yystacksize);
 
        yyss = yyss1;
@@ -2155,8 +2132,9 @@ yyparse ()
          (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
        if (! yyptr)
          goto yyexhaustedlab;
-       YYSTACK_RELOCATE (yyss_alloc, yyss);
-       YYSTACK_RELOCATE (yyvs_alloc, yyvs);
+       YYSTACK_RELOCATE (yyss);
+       YYSTACK_RELOCATE (yyvs);
+
 #  undef YYSTACK_RELOCATE
        if (yyss1 != yyssa)
          YYSTACK_FREE (yyss1);
@@ -2167,6 +2145,7 @@ yyparse ()
       yyssp = yyss + yysize - 1;
       yyvsp = yyvs + yysize - 1;
 
+
       YYDPRINTF ((stderr, "Stack size increased to %lu\n",
                  (unsigned long int) yystacksize));
 
@@ -2176,9 +2155,6 @@ yyparse ()
 
   YYDPRINTF ((stderr, "Entering state %d\n", yystate));
 
-  if (yystate == YYFINAL)
-    YYACCEPT;
-
   goto yybackup;
 
 /*-----------.
@@ -2187,16 +2163,16 @@ yyparse ()
 yybackup:
 
   /* Do appropriate processing given the current state.  Read a
-     lookahead token if we need one and don't already have one.  */
+     look-ahead token if we need one and don't already have one.  */
 
-  /* First try to decide what to do without reference to lookahead token.  */
+  /* First try to decide what to do without reference to look-ahead token.  */
   yyn = yypact[yystate];
   if (yyn == YYPACT_NINF)
     goto yydefault;
 
-  /* Not known => get a lookahead token if don't already have one.  */
+  /* Not known => get a look-ahead token if don't already have one.  */
 
-  /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol.  */
+  /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead symbol.  */
   if (yychar == YYEMPTY)
     {
       YYDPRINTF ((stderr, "Reading a token: "));
@@ -2228,16 +2204,20 @@ yybackup:
       goto yyreduce;
     }
 
+  if (yyn == YYFINAL)
+    YYACCEPT;
+
   /* Count tokens shifted since error; after three, turn off error
      status.  */
   if (yyerrstatus)
     yyerrstatus--;
 
-  /* Shift the lookahead token.  */
+  /* Shift the look-ahead token.  */
   YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
 
-  /* Discard the shifted token.  */
-  yychar = YYEMPTY;
+  /* Discard the shifted token unless it is eof.  */
+  if (yychar != YYEOF)
+    yychar = YYEMPTY;
 
   yystate = yyn;
   *++yyvsp = yylval;
@@ -2277,8 +2257,6 @@ yyreduce:
   switch (yyn)
     {
         case 5:
-
-/* Line 1464 of yacc.c  */
 #line 364 "ntp_parser.y"
     {
                        /* I will need to incorporate much more fine grained
@@ -2294,8 +2272,6 @@ yyreduce:
     break;
 
   case 20:
-
-/* Line 1464 of yacc.c  */
 #line 399 "ntp_parser.y"
     {
                        peer_node *my_node;
@@ -2306,43 +2282,31 @@ yyreduce:
     break;
 
   case 27:
-
-/* Line 1464 of yacc.c  */
 #line 418 "ntp_parser.y"
     { (yyval.Address_node) = create_address_node((yyvsp[(2) - (2)].String), (yyvsp[(1) - (2)].Integer)); }
     break;
 
   case 28:
-
-/* Line 1464 of yacc.c  */
 #line 423 "ntp_parser.y"
     { (yyval.Address_node) = create_address_node((yyvsp[(1) - (1)].String), AF_UNSPEC); }
     break;
 
   case 29:
-
-/* Line 1464 of yacc.c  */
 #line 428 "ntp_parser.y"
     { (yyval.Integer) = AF_INET; }
     break;
 
   case 30:
-
-/* Line 1464 of yacc.c  */
 #line 430 "ntp_parser.y"
     { (yyval.Integer) = AF_INET6; }
     break;
 
   case 31:
-
-/* Line 1464 of yacc.c  */
 #line 435 "ntp_parser.y"
     { (yyval.Attr_val_fifo) = NULL; }
     break;
 
   case 32:
-
-/* Line 1464 of yacc.c  */
 #line 437 "ntp_parser.y"
     {
                        (yyval.Attr_val_fifo) = (yyvsp[(1) - (2)].Attr_val_fifo);
@@ -2351,36 +2315,26 @@ yyreduce:
     break;
 
   case 36:
-
-/* Line 1464 of yacc.c  */
 #line 451 "ntp_parser.y"
     { (yyval.Attr_val) = create_attr_ival(T_Flag, (yyvsp[(1) - (1)].Integer)); }
     break;
 
   case 45:
-
-/* Line 1464 of yacc.c  */
 #line 467 "ntp_parser.y"
     { (yyval.Attr_val) = create_attr_ival((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].Integer)); }
     break;
 
   case 46:
-
-/* Line 1464 of yacc.c  */
 #line 469 "ntp_parser.y"
     { (yyval.Attr_val) = create_attr_uval((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].Integer)); }
     break;
 
   case 53:
-
-/* Line 1464 of yacc.c  */
 #line 483 "ntp_parser.y"
     { (yyval.Attr_val) = create_attr_sval((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].String)); }
     break;
 
   case 55:
-
-/* Line 1464 of yacc.c  */
 #line 497 "ntp_parser.y"
     {
                        unpeer_node *my_node;
@@ -2392,29 +2346,21 @@ yyreduce:
     break;
 
   case 58:
-
-/* Line 1464 of yacc.c  */
 #line 518 "ntp_parser.y"
     { cfgt.broadcastclient = 1; }
     break;
 
   case 59:
-
-/* Line 1464 of yacc.c  */
 #line 520 "ntp_parser.y"
     { CONCAT_G_FIFOS(cfgt.manycastserver, (yyvsp[(2) - (2)].Address_fifo)); }
     break;
 
   case 60:
-
-/* Line 1464 of yacc.c  */
 #line 522 "ntp_parser.y"
     { CONCAT_G_FIFOS(cfgt.multicastclient, (yyvsp[(2) - (2)].Address_fifo)); }
     break;
 
   case 61:
-
-/* Line 1464 of yacc.c  */
 #line 533 "ntp_parser.y"
     {
                        attr_val *atrv;
@@ -2425,15 +2371,11 @@ yyreduce:
     break;
 
   case 62:
-
-/* Line 1464 of yacc.c  */
 #line 540 "ntp_parser.y"
     { cfgt.auth.control_key = (yyvsp[(2) - (2)].Integer); }
     break;
 
   case 63:
-
-/* Line 1464 of yacc.c  */
 #line 542 "ntp_parser.y"
     { 
                        cfgt.auth.cryptosw++;
@@ -2442,36 +2384,26 @@ yyreduce:
     break;
 
   case 64:
-
-/* Line 1464 of yacc.c  */
 #line 547 "ntp_parser.y"
     { cfgt.auth.keys = (yyvsp[(2) - (2)].String); }
     break;
 
   case 65:
-
-/* Line 1464 of yacc.c  */
 #line 549 "ntp_parser.y"
     { cfgt.auth.keysdir = (yyvsp[(2) - (2)].String); }
     break;
 
   case 66:
-
-/* Line 1464 of yacc.c  */
 #line 551 "ntp_parser.y"
     { cfgt.auth.request_key = (yyvsp[(2) - (2)].Integer); }
     break;
 
   case 67:
-
-/* Line 1464 of yacc.c  */
 #line 553 "ntp_parser.y"
     { cfgt.auth.revoke = (yyvsp[(2) - (2)].Integer); }
     break;
 
   case 68:
-
-/* Line 1464 of yacc.c  */
 #line 555 "ntp_parser.y"
     {
                        cfgt.auth.trusted_key_list = (yyvsp[(2) - (2)].Attr_val_fifo);
@@ -2484,22 +2416,16 @@ yyreduce:
     break;
 
   case 69:
-
-/* Line 1464 of yacc.c  */
 #line 564 "ntp_parser.y"
     { cfgt.auth.ntp_signd_socket = (yyvsp[(2) - (2)].String); }
     break;
 
   case 70:
-
-/* Line 1464 of yacc.c  */
 #line 569 "ntp_parser.y"
     { (yyval.Attr_val_fifo) = NULL; }
     break;
 
   case 71:
-
-/* Line 1464 of yacc.c  */
 #line 571 "ntp_parser.y"
     {
                        (yyval.Attr_val_fifo) = (yyvsp[(1) - (2)].Attr_val_fifo);
@@ -2508,15 +2434,11 @@ yyreduce:
     break;
 
   case 72:
-
-/* Line 1464 of yacc.c  */
 #line 579 "ntp_parser.y"
     { (yyval.Attr_val) = create_attr_sval((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].String)); }
     break;
 
   case 73:
-
-/* Line 1464 of yacc.c  */
 #line 581 "ntp_parser.y"
     {
                        (yyval.Attr_val) = NULL;
@@ -2529,15 +2451,11 @@ yyreduce:
     break;
 
   case 79:
-
-/* Line 1464 of yacc.c  */
 #line 606 "ntp_parser.y"
     { CONCAT_G_FIFOS(cfgt.orphan_cmds, (yyvsp[(2) - (2)].Attr_val_fifo)); }
     break;
 
   case 80:
-
-/* Line 1464 of yacc.c  */
 #line 611 "ntp_parser.y"
     {
                        (yyval.Attr_val_fifo) = (yyvsp[(1) - (2)].Attr_val_fifo);
@@ -2546,8 +2464,6 @@ yyreduce:
     break;
 
   case 81:
-
-/* Line 1464 of yacc.c  */
 #line 616 "ntp_parser.y"
     {  
                        (yyval.Attr_val_fifo) = NULL;
@@ -2556,36 +2472,26 @@ yyreduce:
     break;
 
   case 82:
-
-/* Line 1464 of yacc.c  */
 #line 624 "ntp_parser.y"
     { (yyval.Attr_val) = create_attr_dval((yyvsp[(1) - (2)].Integer), (double)(yyvsp[(2) - (2)].Integer)); }
     break;
 
   case 83:
-
-/* Line 1464 of yacc.c  */
 #line 626 "ntp_parser.y"
     { (yyval.Attr_val) = create_attr_dval((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].Double)); }
     break;
 
   case 84:
-
-/* Line 1464 of yacc.c  */
 #line 628 "ntp_parser.y"
     { (yyval.Attr_val) = create_attr_dval((yyvsp[(1) - (2)].Integer), (double)(yyvsp[(2) - (2)].Integer)); }
     break;
 
   case 95:
-
-/* Line 1464 of yacc.c  */
 #line 654 "ntp_parser.y"
     { CONCAT_G_FIFOS(cfgt.stats_list, (yyvsp[(2) - (2)].Int_fifo)); }
     break;
 
   case 96:
-
-/* Line 1464 of yacc.c  */
 #line 656 "ntp_parser.y"
     {
                        if (input_from_file) {
@@ -2598,8 +2504,6 @@ yyreduce:
     break;
 
   case 97:
-
-/* Line 1464 of yacc.c  */
 #line 665 "ntp_parser.y"
     {
                        filegen_node *fgn;
@@ -2610,8 +2514,6 @@ yyreduce:
     break;
 
   case 98:
-
-/* Line 1464 of yacc.c  */
 #line 675 "ntp_parser.y"
     {
                        (yyval.Int_fifo) = (yyvsp[(1) - (2)].Int_fifo);
@@ -2620,8 +2522,6 @@ yyreduce:
     break;
 
   case 99:
-
-/* Line 1464 of yacc.c  */
 #line 680 "ntp_parser.y"
     {
                        (yyval.Int_fifo) = NULL;
@@ -2630,15 +2530,11 @@ yyreduce:
     break;
 
   case 108:
-
-/* Line 1464 of yacc.c  */
 #line 699 "ntp_parser.y"
     { (yyval.Attr_val_fifo) = NULL; }
     break;
 
   case 109:
-
-/* Line 1464 of yacc.c  */
 #line 701 "ntp_parser.y"
     {
                        (yyval.Attr_val_fifo) = (yyvsp[(1) - (2)].Attr_val_fifo);
@@ -2647,8 +2543,6 @@ yyreduce:
     break;
 
   case 110:
-
-/* Line 1464 of yacc.c  */
 #line 709 "ntp_parser.y"
     {
                        if (input_from_file) {
@@ -2662,8 +2556,6 @@ yyreduce:
     break;
 
   case 111:
-
-/* Line 1464 of yacc.c  */
 #line 719 "ntp_parser.y"
     {
                        if (input_from_file) {
@@ -2676,8 +2568,6 @@ yyreduce:
     break;
 
   case 112:
-
-/* Line 1464 of yacc.c  */
 #line 728 "ntp_parser.y"
     {
                        const char *err;
@@ -2696,15 +2586,11 @@ yyreduce:
     break;
 
   case 113:
-
-/* Line 1464 of yacc.c  */
 #line 743 "ntp_parser.y"
     { (yyval.Attr_val) = create_attr_ival(T_Flag, (yyvsp[(1) - (1)].Integer)); }
     break;
 
   case 125:
-
-/* Line 1464 of yacc.c  */
 #line 773 "ntp_parser.y"
     {
                        CONCAT_G_FIFOS(cfgt.discard_opts, (yyvsp[(2) - (2)].Attr_val_fifo));
@@ -2712,8 +2598,6 @@ yyreduce:
     break;
 
   case 126:
-
-/* Line 1464 of yacc.c  */
 #line 777 "ntp_parser.y"
     {
                        CONCAT_G_FIFOS(cfgt.mru_opts, (yyvsp[(2) - (2)].Attr_val_fifo));
@@ -2721,8 +2605,6 @@ yyreduce:
     break;
 
   case 127:
-
-/* Line 1464 of yacc.c  */
 #line 781 "ntp_parser.y"
     {
                        restrict_node *rn;
@@ -2734,8 +2616,6 @@ yyreduce:
     break;
 
   case 128:
-
-/* Line 1464 of yacc.c  */
 #line 789 "ntp_parser.y"
     {
                        restrict_node *rn;
@@ -2747,8 +2627,6 @@ yyreduce:
     break;
 
   case 129:
-
-/* Line 1464 of yacc.c  */
 #line 797 "ntp_parser.y"
     {
                        restrict_node *rn;
@@ -2760,8 +2638,6 @@ yyreduce:
     break;
 
   case 130:
-
-/* Line 1464 of yacc.c  */
 #line 805 "ntp_parser.y"
     {
                        restrict_node *rn;
@@ -2780,8 +2656,6 @@ yyreduce:
     break;
 
   case 131:
-
-/* Line 1464 of yacc.c  */
 #line 820 "ntp_parser.y"
     {
                        restrict_node *rn;
@@ -2800,8 +2674,6 @@ yyreduce:
     break;
 
   case 132:
-
-/* Line 1464 of yacc.c  */
 #line 835 "ntp_parser.y"
     {
                        restrict_node * rn;
@@ -2814,15 +2686,11 @@ yyreduce:
     break;
 
   case 133:
-
-/* Line 1464 of yacc.c  */
 #line 847 "ntp_parser.y"
     { (yyval.Int_fifo) = NULL; }
     break;
 
   case 134:
-
-/* Line 1464 of yacc.c  */
 #line 849 "ntp_parser.y"
     {
                        (yyval.Int_fifo) = (yyvsp[(1) - (2)].Int_fifo);
@@ -2831,8 +2699,6 @@ yyreduce:
     break;
 
   case 150:
-
-/* Line 1464 of yacc.c  */
 #line 875 "ntp_parser.y"
     {
                        (yyval.Attr_val_fifo) = (yyvsp[(1) - (2)].Attr_val_fifo);
@@ -2841,8 +2707,6 @@ yyreduce:
     break;
 
   case 151:
-
-/* Line 1464 of yacc.c  */
 #line 880 "ntp_parser.y"
     {
                        (yyval.Attr_val_fifo) = NULL;
@@ -2851,15 +2715,11 @@ yyreduce:
     break;
 
   case 152:
-
-/* Line 1464 of yacc.c  */
 #line 888 "ntp_parser.y"
     { (yyval.Attr_val) = create_attr_ival((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].Integer)); }
     break;
 
   case 156:
-
-/* Line 1464 of yacc.c  */
 #line 899 "ntp_parser.y"
     {
                        (yyval.Attr_val_fifo) = (yyvsp[(1) - (2)].Attr_val_fifo);
@@ -2868,8 +2728,6 @@ yyreduce:
     break;
 
   case 157:
-
-/* Line 1464 of yacc.c  */
 #line 904 "ntp_parser.y"
     {
                        (yyval.Attr_val_fifo) = NULL;
@@ -2878,15 +2736,11 @@ yyreduce:
     break;
 
   case 158:
-
-/* Line 1464 of yacc.c  */
 #line 912 "ntp_parser.y"
     { (yyval.Attr_val) = create_attr_ival((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].Integer)); }
     break;
 
   case 167:
-
-/* Line 1464 of yacc.c  */
 #line 932 "ntp_parser.y"
     {
                        addr_opts_node *aon;
@@ -2897,8 +2751,6 @@ yyreduce:
     break;
 
   case 168:
-
-/* Line 1464 of yacc.c  */
 #line 942 "ntp_parser.y"
     {
                        (yyval.Attr_val_fifo) = (yyvsp[(1) - (2)].Attr_val_fifo);
@@ -2907,8 +2759,6 @@ yyreduce:
     break;
 
   case 169:
-
-/* Line 1464 of yacc.c  */
 #line 947 "ntp_parser.y"
     {
                        (yyval.Attr_val_fifo) = NULL;
@@ -2917,50 +2767,36 @@ yyreduce:
     break;
 
   case 170:
-
-/* Line 1464 of yacc.c  */
 #line 955 "ntp_parser.y"
     { (yyval.Attr_val) = create_attr_dval((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].Double)); }
     break;
 
   case 171:
-
-/* Line 1464 of yacc.c  */
 #line 957 "ntp_parser.y"
     { (yyval.Attr_val) = create_attr_ival((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].Integer)); }
     break;
 
   case 172:
-
-/* Line 1464 of yacc.c  */
 #line 959 "ntp_parser.y"
     { (yyval.Attr_val) = create_attr_ival((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].Integer)); }
     break;
 
   case 173:
-
-/* Line 1464 of yacc.c  */
 #line 961 "ntp_parser.y"
     { (yyval.Attr_val) = create_attr_sval((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].String)); }
     break;
 
   case 174:
-
-/* Line 1464 of yacc.c  */
 #line 963 "ntp_parser.y"
     { (yyval.Attr_val) = create_attr_sval((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].String)); }
     break;
 
   case 181:
-
-/* Line 1464 of yacc.c  */
 #line 984 "ntp_parser.y"
     { CONCAT_G_FIFOS(cfgt.rlimit, (yyvsp[(2) - (2)].Attr_val_fifo)); }
     break;
 
   case 182:
-
-/* Line 1464 of yacc.c  */
 #line 989 "ntp_parser.y"
     {
                        (yyval.Attr_val_fifo) = (yyvsp[(1) - (2)].Attr_val_fifo);
@@ -2969,8 +2805,6 @@ yyreduce:
     break;
 
   case 183:
-
-/* Line 1464 of yacc.c  */
 #line 994 "ntp_parser.y"
     {
                        (yyval.Attr_val_fifo) = NULL;
@@ -2979,29 +2813,21 @@ yyreduce:
     break;
 
   case 184:
-
-/* Line 1464 of yacc.c  */
 #line 1002 "ntp_parser.y"
     { (yyval.Attr_val) = create_attr_ival((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].Integer)); }
     break;
 
   case 187:
-
-/* Line 1464 of yacc.c  */
 #line 1017 "ntp_parser.y"
     { CONCAT_G_FIFOS(cfgt.enable_opts, (yyvsp[(2) - (2)].Attr_val_fifo)); }
     break;
 
   case 188:
-
-/* Line 1464 of yacc.c  */
 #line 1019 "ntp_parser.y"
     { CONCAT_G_FIFOS(cfgt.disable_opts, (yyvsp[(2) - (2)].Attr_val_fifo)); }
     break;
 
   case 189:
-
-/* Line 1464 of yacc.c  */
 #line 1024 "ntp_parser.y"
     {
                        (yyval.Attr_val_fifo) = (yyvsp[(1) - (2)].Attr_val_fifo);
@@ -3010,8 +2836,6 @@ yyreduce:
     break;
 
   case 190:
-
-/* Line 1464 of yacc.c  */
 #line 1029 "ntp_parser.y"
     {
                        (yyval.Attr_val_fifo) = NULL;
@@ -3020,15 +2844,11 @@ yyreduce:
     break;
 
   case 191:
-
-/* Line 1464 of yacc.c  */
 #line 1037 "ntp_parser.y"
     { (yyval.Attr_val) = create_attr_ival(T_Flag, (yyvsp[(1) - (1)].Integer)); }
     break;
 
   case 192:
-
-/* Line 1464 of yacc.c  */
 #line 1039 "ntp_parser.y"
     { 
                        if (input_from_file) {
@@ -3046,15 +2866,11 @@ yyreduce:
     break;
 
   case 201:
-
-/* Line 1464 of yacc.c  */
 #line 1074 "ntp_parser.y"
     { CONCAT_G_FIFOS(cfgt.tinker, (yyvsp[(2) - (2)].Attr_val_fifo)); }
     break;
 
   case 202:
-
-/* Line 1464 of yacc.c  */
 #line 1079 "ntp_parser.y"
     {
                        (yyval.Attr_val_fifo) = (yyvsp[(1) - (2)].Attr_val_fifo);
@@ -3063,8 +2879,6 @@ yyreduce:
     break;
 
   case 203:
-
-/* Line 1464 of yacc.c  */
 #line 1084 "ntp_parser.y"
     {
                        (yyval.Attr_val_fifo) = NULL;
@@ -3073,15 +2887,11 @@ yyreduce:
     break;
 
   case 204:
-
-/* Line 1464 of yacc.c  */
 #line 1092 "ntp_parser.y"
     { (yyval.Attr_val) = create_attr_dval((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].Double)); }
     break;
 
   case 215:
-
-/* Line 1464 of yacc.c  */
 #line 1115 "ntp_parser.y"
     {
                        attr_val *av;
@@ -3092,8 +2902,6 @@ yyreduce:
     break;
 
   case 216:
-
-/* Line 1464 of yacc.c  */
 #line 1122 "ntp_parser.y"
     {
                        attr_val *av;
@@ -3104,8 +2912,6 @@ yyreduce:
     break;
 
   case 217:
-
-/* Line 1464 of yacc.c  */
 #line 1129 "ntp_parser.y"
     {
                        char error_text[64];
@@ -3125,8 +2931,6 @@ yyreduce:
     break;
 
   case 218:
-
-/* Line 1464 of yacc.c  */
 #line 1145 "ntp_parser.y"
     {
                        if (!input_from_file) {
@@ -3135,12 +2939,12 @@ yyreduce:
                        }
                        if (curr_include_level >= MAXINCLUDELEVEL) {
                                fprintf(stderr, "getconfig: Maximum include file level exceeded.\n");
-                               msyslog(LOG_ERR, "getconfig: Maximum include file level exceeded.\n");
+                               msyslog(LOG_ERR, "getconfig: Maximum include file level exceeded.");
                        } else {
                                fp[curr_include_level + 1] = F_OPEN(FindConfig((yyvsp[(2) - (3)].String)), "r");
                                if (fp[curr_include_level + 1] == NULL) {
                                        fprintf(stderr, "getconfig: Couldn't open <%s>\n", FindConfig((yyvsp[(2) - (3)].String)));
-                                       msyslog(LOG_ERR, "getconfig: Couldn't open <%s>\n", FindConfig((yyvsp[(2) - (3)].String)));
+                                       msyslog(LOG_ERR, "getconfig: Couldn't open <%s>", FindConfig((yyvsp[(2) - (3)].String)));
                                } else {
                                        ip_file = fp[++curr_include_level];
                                }
@@ -3149,8 +2953,6 @@ yyreduce:
     break;
 
   case 219:
-
-/* Line 1464 of yacc.c  */
 #line 1164 "ntp_parser.y"
     {
                        while (curr_include_level != -1)
@@ -3159,36 +2961,26 @@ yyreduce:
     break;
 
   case 220:
-
-/* Line 1464 of yacc.c  */
 #line 1169 "ntp_parser.y"
     { /* see drift_parm below for actions */ }
     break;
 
   case 221:
-
-/* Line 1464 of yacc.c  */
 #line 1171 "ntp_parser.y"
     { CONCAT_G_FIFOS(cfgt.logconfig, (yyvsp[(2) - (2)].Attr_val_fifo)); }
     break;
 
   case 222:
-
-/* Line 1464 of yacc.c  */
 #line 1173 "ntp_parser.y"
     { CONCAT_G_FIFOS(cfgt.phone, (yyvsp[(2) - (2)].String_fifo)); }
     break;
 
   case 223:
-
-/* Line 1464 of yacc.c  */
 #line 1175 "ntp_parser.y"
     { APPEND_G_FIFO(cfgt.setvar, (yyvsp[(2) - (2)].Set_var)); }
     break;
 
   case 224:
-
-/* Line 1464 of yacc.c  */
 #line 1177 "ntp_parser.y"
     {
                        addr_opts_node *aon;
@@ -3199,15 +2991,11 @@ yyreduce:
     break;
 
   case 225:
-
-/* Line 1464 of yacc.c  */
 #line 1184 "ntp_parser.y"
     { CONCAT_G_FIFOS(cfgt.ttl, (yyvsp[(2) - (2)].Attr_val_fifo)); }
     break;
 
   case 234:
-
-/* Line 1464 of yacc.c  */
 #line 1206 "ntp_parser.y"
     {
                        attr_val *av;
@@ -3218,8 +3006,6 @@ yyreduce:
     break;
 
   case 235:
-
-/* Line 1464 of yacc.c  */
 #line 1213 "ntp_parser.y"
     {
                        attr_val *av;
@@ -3232,8 +3018,6 @@ yyreduce:
     break;
 
   case 236:
-
-/* Line 1464 of yacc.c  */
 #line 1222 "ntp_parser.y"
     {
                        attr_val *av;
@@ -3244,29 +3028,21 @@ yyreduce:
     break;
 
   case 237:
-
-/* Line 1464 of yacc.c  */
 #line 1232 "ntp_parser.y"
     { (yyval.Set_var) = create_setvar_node((yyvsp[(1) - (4)].String), (yyvsp[(3) - (4)].String), (yyvsp[(4) - (4)].Integer)); }
     break;
 
   case 239:
-
-/* Line 1464 of yacc.c  */
 #line 1238 "ntp_parser.y"
     { (yyval.Integer) = 0; }
     break;
 
   case 240:
-
-/* Line 1464 of yacc.c  */
 #line 1243 "ntp_parser.y"
     { (yyval.Attr_val_fifo) = NULL; }
     break;
 
   case 241:
-
-/* Line 1464 of yacc.c  */
 #line 1245 "ntp_parser.y"
     {
                        (yyval.Attr_val_fifo) = (yyvsp[(1) - (2)].Attr_val_fifo);
@@ -3275,15 +3051,11 @@ yyreduce:
     break;
 
   case 242:
-
-/* Line 1464 of yacc.c  */
 #line 1253 "ntp_parser.y"
     { (yyval.Attr_val) = create_attr_ival((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].Integer)); }
     break;
 
   case 243:
-
-/* Line 1464 of yacc.c  */
 #line 1255 "ntp_parser.y"
     {
                        (yyval.Attr_val) = create_attr_sval((yyvsp[(1) - (2)].Integer), estrdup((yyvsp[(2) - (2)].Address_node)->address));
@@ -3292,8 +3064,6 @@ yyreduce:
     break;
 
   case 244:
-
-/* Line 1464 of yacc.c  */
 #line 1263 "ntp_parser.y"
     {
                        (yyval.Attr_val_fifo) = (yyvsp[(1) - (2)].Attr_val_fifo);
@@ -3302,8 +3072,6 @@ yyreduce:
     break;
 
   case 245:
-
-/* Line 1464 of yacc.c  */
 #line 1268 "ntp_parser.y"
     {
                        (yyval.Attr_val_fifo) = NULL;
@@ -3312,8 +3080,6 @@ yyreduce:
     break;
 
   case 246:
-
-/* Line 1464 of yacc.c  */
 #line 1276 "ntp_parser.y"
     {
                        char    prefix;
@@ -3339,8 +3105,6 @@ yyreduce:
     break;
 
   case 247:
-
-/* Line 1464 of yacc.c  */
 #line 1301 "ntp_parser.y"
     {
                        nic_rule_node *nrn;
@@ -3351,8 +3115,6 @@ yyreduce:
     break;
 
   case 248:
-
-/* Line 1464 of yacc.c  */
 #line 1308 "ntp_parser.y"
     {
                        nic_rule_node *nrn;
@@ -3363,15 +3125,11 @@ yyreduce:
     break;
 
   case 258:
-
-/* Line 1464 of yacc.c  */
 #line 1336 "ntp_parser.y"
     { CONCAT_G_FIFOS(cfgt.reset_counters, (yyvsp[(2) - (2)].Int_fifo)); }
     break;
 
   case 259:
-
-/* Line 1464 of yacc.c  */
 #line 1341 "ntp_parser.y"
     {
                        (yyval.Int_fifo) = (yyvsp[(1) - (2)].Int_fifo);
@@ -3380,8 +3138,6 @@ yyreduce:
     break;
 
   case 260:
-
-/* Line 1464 of yacc.c  */
 #line 1346 "ntp_parser.y"
     {
                        (yyval.Int_fifo) = NULL;
@@ -3390,8 +3146,6 @@ yyreduce:
     break;
 
   case 268:
-
-/* Line 1464 of yacc.c  */
 #line 1370 "ntp_parser.y"
     {
                        (yyval.Attr_val_fifo) = (yyvsp[(1) - (2)].Attr_val_fifo);
@@ -3400,8 +3154,6 @@ yyreduce:
     break;
 
   case 269:
-
-/* Line 1464 of yacc.c  */
 #line 1375 "ntp_parser.y"
     {
                        (yyval.Attr_val_fifo) = NULL;
@@ -3410,8 +3162,6 @@ yyreduce:
     break;
 
   case 270:
-
-/* Line 1464 of yacc.c  */
 #line 1383 "ntp_parser.y"
     {
                        (yyval.Attr_val_fifo) = (yyvsp[(1) - (2)].Attr_val_fifo);
@@ -3420,8 +3170,6 @@ yyreduce:
     break;
 
   case 271:
-
-/* Line 1464 of yacc.c  */
 #line 1388 "ntp_parser.y"
     {
                        (yyval.Attr_val_fifo) = NULL;
@@ -3430,22 +3178,16 @@ yyreduce:
     break;
 
   case 272:
-
-/* Line 1464 of yacc.c  */
 #line 1396 "ntp_parser.y"
     { (yyval.Attr_val) = create_attr_ival('i', (yyvsp[(1) - (1)].Integer)); }
     break;
 
   case 274:
-
-/* Line 1464 of yacc.c  */
 #line 1402 "ntp_parser.y"
     { (yyval.Attr_val) = create_attr_rangeval('-', (yyvsp[(2) - (5)].Integer), (yyvsp[(4) - (5)].Integer)); }
     break;
 
   case 275:
-
-/* Line 1464 of yacc.c  */
 #line 1407 "ntp_parser.y"
     {
                        (yyval.String_fifo) = (yyvsp[(1) - (2)].String_fifo);
@@ -3454,8 +3196,6 @@ yyreduce:
     break;
 
   case 276:
-
-/* Line 1464 of yacc.c  */
 #line 1412 "ntp_parser.y"
     {
                        (yyval.String_fifo) = NULL;
@@ -3464,8 +3204,6 @@ yyreduce:
     break;
 
   case 277:
-
-/* Line 1464 of yacc.c  */
 #line 1420 "ntp_parser.y"
     {
                        (yyval.Address_fifo) = (yyvsp[(1) - (2)].Address_fifo);
@@ -3474,8 +3212,6 @@ yyreduce:
     break;
 
   case 278:
-
-/* Line 1464 of yacc.c  */
 #line 1425 "ntp_parser.y"
     {
                        (yyval.Address_fifo) = NULL;
@@ -3484,8 +3220,6 @@ yyreduce:
     break;
 
   case 279:
-
-/* Line 1464 of yacc.c  */
 #line 1433 "ntp_parser.y"
     {
                        if ((yyvsp[(1) - (1)].Integer) != 0 && (yyvsp[(1) - (1)].Integer) != 1) {
@@ -3498,29 +3232,21 @@ yyreduce:
     break;
 
   case 280:
-
-/* Line 1464 of yacc.c  */
 #line 1441 "ntp_parser.y"
     { (yyval.Integer) = 1; }
     break;
 
   case 281:
-
-/* Line 1464 of yacc.c  */
 #line 1442 "ntp_parser.y"
     { (yyval.Integer) = 0; }
     break;
 
   case 282:
-
-/* Line 1464 of yacc.c  */
 #line 1446 "ntp_parser.y"
     { (yyval.Double) = (double)(yyvsp[(1) - (1)].Integer); }
     break;
 
   case 284:
-
-/* Line 1464 of yacc.c  */
 #line 1457 "ntp_parser.y"
     {
                        sim_node *sn;
@@ -3534,15 +3260,11 @@ yyreduce:
     break;
 
   case 285:
-
-/* Line 1464 of yacc.c  */
 #line 1474 "ntp_parser.y"
     { old_config_style = 0; }
     break;
 
   case 286:
-
-/* Line 1464 of yacc.c  */
 #line 1479 "ntp_parser.y"
     {
                        (yyval.Attr_val_fifo) = (yyvsp[(1) - (3)].Attr_val_fifo);
@@ -3551,8 +3273,6 @@ yyreduce:
     break;
 
   case 287:
-
-/* Line 1464 of yacc.c  */
 #line 1484 "ntp_parser.y"
     {
                        (yyval.Attr_val_fifo) = NULL;
@@ -3561,15 +3281,11 @@ yyreduce:
     break;
 
   case 288:
-
-/* Line 1464 of yacc.c  */
 #line 1492 "ntp_parser.y"
     { (yyval.Attr_val) = create_attr_dval((yyvsp[(1) - (3)].Integer), (yyvsp[(3) - (3)].Double)); }
     break;
 
   case 291:
-
-/* Line 1464 of yacc.c  */
 #line 1502 "ntp_parser.y"
     {
                        (yyval.Sim_server_fifo) = (yyvsp[(1) - (2)].Sim_server_fifo);
@@ -3578,8 +3294,6 @@ yyreduce:
     break;
 
   case 292:
-
-/* Line 1464 of yacc.c  */
 #line 1507 "ntp_parser.y"
     {
                        (yyval.Sim_server_fifo) = NULL;
@@ -3588,29 +3302,21 @@ yyreduce:
     break;
 
   case 293:
-
-/* Line 1464 of yacc.c  */
 #line 1515 "ntp_parser.y"
     { (yyval.Sim_server) = create_sim_server((yyvsp[(1) - (5)].Address_node), (yyvsp[(3) - (5)].Double), (yyvsp[(4) - (5)].Sim_script_fifo)); }
     break;
 
   case 294:
-
-/* Line 1464 of yacc.c  */
 #line 1520 "ntp_parser.y"
     { (yyval.Double) = (yyvsp[(3) - (4)].Double); }
     break;
 
   case 295:
-
-/* Line 1464 of yacc.c  */
 #line 1525 "ntp_parser.y"
     { (yyval.Address_node) = (yyvsp[(3) - (3)].Address_node); }
     break;
 
   case 296:
-
-/* Line 1464 of yacc.c  */
 #line 1530 "ntp_parser.y"
     {
                        (yyval.Sim_script_fifo) = (yyvsp[(1) - (2)].Sim_script_fifo);
@@ -3619,8 +3325,6 @@ yyreduce:
     break;
 
   case 297:
-
-/* Line 1464 of yacc.c  */
 #line 1535 "ntp_parser.y"
     {
                        (yyval.Sim_script_fifo) = NULL;
@@ -3629,15 +3333,11 @@ yyreduce:
     break;
 
   case 298:
-
-/* Line 1464 of yacc.c  */
 #line 1543 "ntp_parser.y"
     { (yyval.Sim_script) = create_sim_script_info((yyvsp[(3) - (6)].Double), (yyvsp[(5) - (6)].Attr_val_fifo)); }
     break;
 
   case 299:
-
-/* Line 1464 of yacc.c  */
 #line 1548 "ntp_parser.y"
     {
                        (yyval.Attr_val_fifo) = (yyvsp[(1) - (3)].Attr_val_fifo);
@@ -3646,8 +3346,6 @@ yyreduce:
     break;
 
   case 300:
-
-/* Line 1464 of yacc.c  */
 #line 1553 "ntp_parser.y"
     {
                        (yyval.Attr_val_fifo) = NULL;
@@ -3656,16 +3354,13 @@ yyreduce:
     break;
 
   case 301:
-
-/* Line 1464 of yacc.c  */
 #line 1561 "ntp_parser.y"
     { (yyval.Attr_val) = create_attr_dval((yyvsp[(1) - (3)].Integer), (yyvsp[(3) - (3)].Double)); }
     break;
 
 
-
-/* Line 1464 of yacc.c  */
-#line 3669 "ntp_parser.c"
+/* Line 1267 of yacc.c.  */
+#line 3364 "../../ntpd/ntp_parser.c"
       default: break;
     }
   YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
@@ -3676,6 +3371,7 @@ yyreduce:
 
   *++yyvsp = yyval;
 
+
   /* Now `shift' the result of the reduction.  Determine what state
      that goes to, based on the state we popped back to and the rule
      number reduced by.  */
@@ -3740,7 +3436,7 @@ yyerrlab:
 
   if (yyerrstatus == 3)
     {
-      /* If just tried and failed to reuse lookahead token after an
+      /* If just tried and failed to reuse look-ahead token after an
         error, discard it.  */
 
       if (yychar <= YYEOF)
@@ -3757,7 +3453,7 @@ yyerrlab:
        }
     }
 
-  /* Else will try to reuse lookahead token after shifting the error
+  /* Else will try to reuse look-ahead token after shifting the error
      token.  */
   goto yyerrlab1;
 
@@ -3814,6 +3510,9 @@ yyerrlab1:
       YY_STACK_PRINT (yyss, yyssp);
     }
 
+  if (yyn == YYFINAL)
+    YYACCEPT;
+
   *++yyvsp = yylval;
 
 
@@ -3838,7 +3537,7 @@ yyabortlab:
   yyresult = 1;
   goto yyreturn;
 
-#if !defined(yyoverflow) || YYERROR_VERBOSE
+#ifndef yyoverflow
 /*-------------------------------------------------.
 | yyexhaustedlab -- memory exhaustion comes here.  |
 `-------------------------------------------------*/
@@ -3849,7 +3548,7 @@ yyexhaustedlab:
 #endif
 
 yyreturn:
-  if (yychar != YYEMPTY)
+  if (yychar != YYEOF && yychar != YYEMPTY)
      yydestruct ("Cleanup: discarding lookahead",
                 yytoken, &yylval);
   /* Do not reclaim the symbols of the rule which action triggered
@@ -3875,8 +3574,6 @@ yyreturn:
 }
 
 
-
-/* Line 1684 of yacc.c  */
 #line 1572 "ntp_parser.y"
 
 
index 2b5c83258c08a001f8db27cac790ab4b8fb19d7a..9b80c59c03ac98ddff88d578687904355e1a3619 100644 (file)
@@ -1,22 +1,24 @@
-/* A Bison parser, made by GNU Bison 2.4.3.  */
+/* A Bison parser, made by GNU Bison 2.3.  */
 
 /* Skeleton interface for Bison's Yacc-like parsers in C
-   
-      Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
-   2009, 2010 Free Software Foundation, Inc.
-   
-   This program is free software: you can redistribute it and/or modify
+
+   Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+   Free Software Foundation, Inc.
+
+   This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
-   the Free Software Foundation, either version 3 of the License, or
-   (at your option) any later version.
-   
+   the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
-   
+
    You should have received a copy of the GNU General Public License
-   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin Street, Fifth Floor,
+   Boston, MA 02110-1301, USA.  */
 
 /* As a special exception, you may create a larger work that contains
    part or all of the Bison parser skeleton and distribute that work
    special exception, which will cause the skeleton and the resulting
    Bison output files to be licensed under the GNU General Public
    License without this special exception.
-   
+
    This special exception was added by the Free Software Foundation in
    version 2.2 of Bison.  */
 
-
 /* Tokens.  */
 #ifndef YYTOKENTYPE
 # define YYTOKENTYPE
 
 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
 typedef union YYSTYPE
-{
-
-/* Line 1685 of yacc.c  */
 #line 49 "ntp_parser.y"
-
+{
        char *                  String;
        double                  Double;
        int                     Integer;
@@ -438,17 +436,14 @@ typedef union YYSTYPE
        server_info_fifo *      Sim_server_fifo;
        script_info *           Sim_script;
        script_info_fifo *      Sim_script_fifo;
-
-
-
-/* Line 1685 of yacc.c  */
-#line 446 "ntp_parser.h"
-} YYSTYPE;
-# define YYSTYPE_IS_TRIVIAL 1
+}
+/* Line 1529 of yacc.c.  */
+#line 442 "../../ntpd/ntp_parser.h"
+       YYSTYPE;
 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
 # define YYSTYPE_IS_DECLARED 1
+# define YYSTYPE_IS_TRIVIAL 1
 #endif
 
 extern YYSTYPE yylval;
 
-
index 99ea9e99c9f5e4e242ee967fd53ec8264f053e1b..f077735ea02e541dc396e4042a62ced522837f49 100644 (file)
@@ -1149,12 +1149,12 @@ miscellaneous_command
                        }
                        if (curr_include_level >= MAXINCLUDELEVEL) {
                                fprintf(stderr, "getconfig: Maximum include file level exceeded.\n");
-                               msyslog(LOG_ERR, "getconfig: Maximum include file level exceeded.\n");
+                               msyslog(LOG_ERR, "getconfig: Maximum include file level exceeded.");
                        } else {
                                fp[curr_include_level + 1] = F_OPEN(FindConfig($2), "r");
                                if (fp[curr_include_level + 1] == NULL) {
                                        fprintf(stderr, "getconfig: Couldn't open <%s>\n", FindConfig($2));
-                                       msyslog(LOG_ERR, "getconfig: Couldn't open <%s>\n", FindConfig($2));
+                                       msyslog(LOG_ERR, "getconfig: Couldn't open <%s>", FindConfig($2));
                                } else {
                                        ip_file = fp[++curr_include_level];
                                }
index 69c0c0158705e1b4d42e45455c9ec3d043f16a41..ae05982ec408a47ed59edb81762aa53079fb513f 100644 (file)
@@ -324,7 +324,7 @@ transmit(
                                peer_ntpdate--;
                                if (peer_ntpdate == 0) {
                                        msyslog(LOG_NOTICE,
-                                           "ntpd: no servers found\n");
+                                           "ntpd: no servers found");
                                        if (!msyslog_term)
                                                printf(
                                                    "ntpd: no servers found\n");
@@ -3603,7 +3603,7 @@ pool_xmit(
                printf("transmit: at %ld %s->%s pool\n",
                    current_time, latoa(lcladr), stoa(rmtadr));
 #endif
-       msyslog(LOG_INFO, "Soliciting pool server %s\n", stoa(rmtadr));
+       msyslog(LOG_INFO, "Soliciting pool server %s", stoa(rmtadr));
 #endif /* WORKER */
 }
 
@@ -3667,7 +3667,7 @@ pool_name_resolved(
        pool = findpeerbyassoc(assoc);
        if (NULL == pool) {
                msyslog(LOG_ERR,
-                       "Could not find assoc %u for pool DNS %s\n",
+                       "Could not find assoc %u for pool DNS %s",
                        assoc, name);
                return;
        }
index debb85e2a707697010ebf333746a9f2379226ffd..aacec6496a9dc61fe986acf42ba0ec99007c7089 100644 (file)
@@ -134,7 +134,7 @@ set_timer_or_die(
        rc = setitimer(ITIMER_REAL, &itimer, NULL);
 # endif
        if (-1 == rc) {
-               msyslog(LOG_ERR, "interval timer %s failed, %m\n",
+               msyslog(LOG_ERR, "interval timer %s failed, %m",
                        setfunc);
                exit(1);
        }
@@ -199,7 +199,7 @@ init_timer(void)
 # ifndef VMS
 #  ifdef HAVE_TIMER_CREATE
        if (TC_ERR == timer_create(CLOCK_REALTIME, NULL, &timer_id)) {
-               msyslog(LOG_ERR, "timer_create failed, %m\n");
+               msyslog(LOG_ERR, "timer_create failed, %m");
                exit(1);
        }
 #  endif
index 625e7a6452444626a48fad11ecb578e1aeb18faf..5870ff6cf374f743198f75e0d51dd4fb9a056f79 100644 (file)
@@ -471,7 +471,7 @@ ntpdmain(
                if (HAVE_OPT(SAVECONFIGQUIT))
                        syslogit = FALSE;
        }
-       msyslog(LOG_NOTICE, "%s: Starting\n", Version);
+       msyslog(LOG_NOTICE, "%s: Starting", Version);
 
        {
                int i;
index 9fa2cd46a2d9917e175f37f162ccec5109c272bd..b2c063e432ec52be3e78578bbc7bd8cfc86c374c 100644 (file)
@@ -651,7 +651,7 @@ arc_start(
        DPRINTF(1, ("arc: unit %d using tty_open().\n", unit));
        fd = tty_open(device, OPEN_FLAGS, 0777);
        if (fd < 0) {
-               msyslog(LOG_ERR, "MSF_ARCRON(%d): failed second open(%s, 0777): %m.\n",
+               msyslog(LOG_ERR, "MSF_ARCRON(%d): failed second open(%s, 0777): %m.",
                        unit, device);
                close(temp_fd);
                return 0;
@@ -661,7 +661,7 @@ arc_start(
 
 #ifndef SYS_WINNT
        if (-1 == fcntl(fd, F_SETFL, 0)) /* clear the descriptor flags */
-               msyslog(LOG_ERR, "MSF_ARCRON(%d): fcntl(F_SETFL, 0): %m.\n",
+               msyslog(LOG_ERR, "MSF_ARCRON(%d): fcntl(F_SETFL, 0): %m.",
                        unit);
 
 #endif
@@ -670,7 +670,7 @@ arc_start(
 #ifdef HAVE_TERMIOS
 
        if (tcgetattr(fd, &arg) < 0) {
-               msyslog(LOG_ERR, "MSF_ARCRON(%d): tcgetattr(%s): %m.\n",
+               msyslog(LOG_ERR, "MSF_ARCRON(%d): tcgetattr(%s): %m.",
                        unit, device);
                close(fd);
                return 0;
@@ -684,7 +684,7 @@ arc_start(
        arg.c_cc[VTIME] = 0;
 
        if (tcsetattr(fd, TCSANOW, &arg) < 0) {
-               msyslog(LOG_ERR, "MSF_ARCRON(%d): tcsetattr(%s): %m.\n",
+               msyslog(LOG_ERR, "MSF_ARCRON(%d): tcsetattr(%s): %m.",
                        unit, device);
                close(fd);
                return 0;
index 1bbea7b9f9e0417a62ad8147282aa979d63c7d54..49922e39345cf29f3f217597135056d058593351 100644 (file)
@@ -449,7 +449,7 @@ get_datumtime(struct vmedate *time_vme)
                         * the time.
                         */
                        if(ioctl (fd_vme, SELTIMEFORMAT, TIME_DECIMAL)){        
-                                       msyslog(LOG_ERR, "Could not set time format\n");
+                                       msyslog(LOG_ERR, "Could not set time format");
                                        return (NULL);  
                        }
                        /* read the time */
index d7ecd0d0bce4d9a0b36e9da04d7643084fe6e2f1..95f13a8c0ca111355656322b158913a9aaf4fed1 100644 (file)
@@ -252,7 +252,7 @@ datum_pts_start(
        datum_pts->PTS_fd = fd;
 
        if (-1 == fcntl(datum_pts->PTS_fd, F_SETFL, 0)) /* clear the descriptor flags */
-               msyslog(LOG_ERR, "MSF_ARCRON(%d): fcntl(F_SETFL, 0): %m.\n",
+               msyslog(LOG_ERR, "MSF_ARCRON(%d): fcntl(F_SETFL, 0): %m.",
                        unit);
 
 #ifdef DEBUG_DATUM_PTC
index 95abfe12de4c2d9f675285f67fa7684d42dbdc95..95bcab983c4d639ed2438905db5f781d3fc8a245 100644 (file)
@@ -195,7 +195,7 @@ hopfpci_poll(
 
 #ifndef SYS_WINNT
        if (ioctl(fd, HOPF_CLOCK_GET_UTC, &m_time) < 0)
-               msyslog(LOG_ERR, "HOPF_P(%d): HOPF_CLOCK_GET_UTC: %m\n",
+               msyslog(LOG_ERR, "HOPF_P(%d): HOPF_CLOCK_GET_UTC: %m",
                        unit);
 #else
        GetHopfSystemTime(&m_time);
index 89b4aa819ce0f7f41d428655c1e5569a836721be..8399c96e78ab5be170a5a68e78cd43390f960e86 100644 (file)
@@ -1411,7 +1411,7 @@ ees_process(
         * reference time, and lastsampletime as the receive time.
         */
        if (ees->fix_pending) {
-               msyslog(LOG_ERR, "MSF%d: fix_pending=%d -> jump %x.%08x\n",
+               msyslog(LOG_ERR, "MSF%d: fix_pending=%d -> jump %x.%08x",
                        ees->fix_pending, ees->unit, offset.l_i, offset.l_f);
                ees->fix_pending = 0;
        }
index 310e827841b7411a9b2ee8123a101022b82bbca7..2b396d8a51a19c3ebca54ab23c036133eb15edbc 100644 (file)
@@ -313,20 +313,20 @@ palisade_start (
                /* Normal mode, do nothing */
                break;
            case CLK_PRAECIS:
-               msyslog(LOG_NOTICE, "Palisade(%d) Praecis mode enabled\n"
+               msyslog(LOG_NOTICE, "Palisade(%d) Praecis mode enabled"
                        ,unit);
                break;
            case CLK_THUNDERBOLT:
-               msyslog(LOG_NOTICE, "Palisade(%d) Thunderbolt mode enabled\n"
+               msyslog(LOG_NOTICE, "Palisade(%d) Thunderbolt mode enabled"
                        ,unit);
                tio.c_cflag = (CS8|CLOCAL|CREAD);
                break;
            case CLK_ACUTIME:
-               msyslog(LOG_NOTICE, "Palisade(%d) Acutime Gold mode enabled\n"
+               msyslog(LOG_NOTICE, "Palisade(%d) Acutime Gold mode enabled"
                        ,unit);
                break;
            default:
-               msyslog(LOG_NOTICE, "Palisade(%d) mode unknown\n",unit);
+               msyslog(LOG_NOTICE, "Palisade(%d) mode unknown",unit);
                break;
        }
        if (tcsetattr(fd, TCSANOW, &tio) == -1) {
index aa619c3fdc9baaacdf1db2401b1bb1dbe858c80e..75d8f38fc5fd6bf08f699808f55dcbdf7b4aa5dc 100644 (file)
@@ -715,7 +715,7 @@ ripencc_get_pps_ts(
        l_fp tstmp;
 
 #ifdef DEBUG_PPS
-       msyslog(LOG_INFO,"ripencc_get_pps_ts\n");
+       msyslog(LOG_INFO,"ripencc_get_pps_ts");
 #endif /* DEBUG_PPS */
 
 
@@ -752,8 +752,8 @@ ripencc_get_pps_ts(
        tstmp.l_uf = (u_int32)dtemp;
 
 #ifdef DEBUG_PPS
-       msyslog(LOG_INFO,"ts.tv_sec: %d\n",(int)ts.tv_sec);
-       msyslog(LOG_INFO,"ts.tv_nsec: %ld\n",ts.tv_nsec);
+       msyslog(LOG_INFO,"ts.tv_sec: %d",(int)ts.tv_sec);
+       msyslog(LOG_INFO,"ts.tv_nsec: %ld",ts.tv_nsec);
 #endif /* DEBUG_PPS */
 
        *tsptr = tstmp;
@@ -994,11 +994,11 @@ ripencc_receive(struct recvbuf *rbufp)
                                        pp->nsec = 0;
                                }
                                else
-                                       msyslog(LOG_INFO, "%s(): ripencc_get_pps_ts returns failure\n",__FUNCTION__);
+                                       msyslog(LOG_INFO, "%s(): ripencc_get_pps_ts returns failure",__FUNCTION__);
 
 
                                if (!up->polled) { 
-                                       msyslog(LOG_INFO, "%s(): unrequested packet\n",__FUNCTION__);
+                                       msyslog(LOG_INFO, "%s(): unrequested packet",__FUNCTION__);
                                        /* unrequested packet */
                                        break;
                                }
index b203c3f0f36cd3c6fd66b36678e85fb971f12b8d..125fcd20d463f4dd6ad6049439f3bc51f56c021e 100644 (file)
@@ -437,14 +437,14 @@ static void tsync_poll(int unit, struct peer *peer)
     /* If error opening TSYNC device... */
     if (hBoard.file_descriptor < 0)
     {
-        msyslog(LOG_ERR, "Couldn't open device\n");
+        msyslog(LOG_ERR, "Couldn't open device");
         return;
     }
 
     /* If error while initializing the board... */
     if (ioctl(hBoard.file_descriptor, IOCTL_TPRO_OPEN, &hBoard) < 0)
     {
-        msyslog(LOG_ERR, "Couldn't initialize device\n");
+        msyslog(LOG_ERR, "Couldn't initialize device");
         close(hBoard.file_descriptor);
         return;
     }
@@ -456,7 +456,7 @@ static void tsync_poll(int unit, struct peer *peer)
 
     it = (ioctl_trans_di*)alloca(itAllocationLength);
     if (it == NULL) {
-        msyslog(LOG_ERR, "Couldn't allocate transaction memory - Reference\n");
+        msyslog(LOG_ERR, "Couldn't allocate transaction memory - Reference");
         return;
     }
 
@@ -483,7 +483,7 @@ static void tsync_poll(int unit, struct peer *peer)
 
     it1 = (ioctl_trans_di*)alloca(itAllocationLength1);
     if (it1 == NULL) {
-        msyslog(LOG_ERR, "Couldn't allocate transaction memory - Time Scale\n");
+        msyslog(LOG_ERR, "Couldn't allocate transaction memory - Time Scale");
         return;
     }
 
@@ -510,7 +510,7 @@ static void tsync_poll(int unit, struct peer *peer)
 
     it2 = (ioctl_trans_di*)alloca(itAllocationLength2);
     if (it2 == NULL) {
-        msyslog(LOG_ERR, "Couldn't allocate transaction memory - Leap Second\n");
+        msyslog(LOG_ERR, "Couldn't allocate transaction memory - Leap Second");
         return;
     }
 
index 3cf7b5d6161329b6286474b4edc2ab5e5d353f68..16569f30b5f4b657fa672520eb733a9daf730355 100644 (file)
@@ -324,7 +324,7 @@ ntpdatemain (
        key_file = key_file_storage;
 
        if (!ExpandEnvironmentStrings(KEYFILE, key_file, MAX_PATH))
-               msyslog(LOG_ERR, "ExpandEnvironmentStrings(KEYFILE) failed: %m\n");
+               msyslog(LOG_ERR, "ExpandEnvironmentStrings(KEYFILE) failed: %m");
 
        ssl_applink();
 #endif /* SYS_WINNT */
@@ -828,7 +828,7 @@ receive(
        if (LEAP_NOTINSYNC == PKT_LEAP(rpkt->li_vn_mode) &&
            STRATUM_PKT_UNSPEC == rpkt->stratum &&
            !memcmp("RATE", &rpkt->refid, 4)) {
-               msyslog(LOG_ERR, "%s rate limit response from server.\n",
+               msyslog(LOG_ERR, "%s rate limit response from server.",
                        stoa(&rbufp->recv_srcadr));
                server->event_time = 0;
                complete_servers++;
@@ -1373,13 +1373,13 @@ addserver(
                           by waiting for resolution of several servers */
                        fprintf(stderr, "Exiting, name server cannot be used: %s (%d)",
                                gai_strerror(error), error);
-                       msyslog(LOG_ERR, "name server cannot be used: %s (%d)\n",
+                       msyslog(LOG_ERR, "name server cannot be used: %s (%d)",
                                gai_strerror(error), error);
                        exit(1);
                }
                fprintf(stderr, "Error resolving %s: %s (%d)\n", serv,
                        gai_strerror(error), error);
-               msyslog(LOG_ERR, "Can't find host %s: %s (%d)\n", serv,
+               msyslog(LOG_ERR, "Can't find host %s: %s (%d)", serv,
                        gai_strerror(error), error);
                return;
        }
index 457f8440f11e40ae3061c2262535029cd4269aa6..8cb43173f22e64cf6e0a1471b0c6384aa12b7c7a 100644 (file)
@@ -26,7 +26,7 @@ ntp_set_tod(
                (ULONGLONG)tv->tv_usec * 10;
 
        if (!FileTimeToSystemTime(&t.ft, &st) || !SetSystemTime(&st)) {
-               msyslog(LOG_ERR, "SetSystemTime failed: %m\n");
+               msyslog(LOG_ERR, "SetSystemTime failed: %m");
                return -1;
        }
 
index 52dcbeb96d25f7dca0aedab6c09802043fbe5129..9e7a861798534c1bdb6e4beac9d4190bfeaf30f6 100644 (file)
@@ -39,7 +39,7 @@ InitSockets(
                SetLastError(err);
                mfprintf(stderr, "No usable winsock: %m\n");
                SetLastError(err);
-               msyslog(LOG_ERR, "No usable winsock: %m\n");
+               msyslog(LOG_ERR, "No usable winsock: %m");
                exit(1);
        }
 }
index aaf21b887e9894e7006a125b49d5f7bc97e8f593..faf9b3c750975956354316a8cbd459988504f72e 100644 (file)
@@ -673,13 +673,13 @@ init_winnt_time(void)
 
        /* Set the Event-ID message-file name. */
        if (!GetModuleFileName(NULL, szMsgPath, sizeof(szMsgPath))) {
-               msyslog(LOG_ERR, "GetModuleFileName(PGM_EXE_FILE) failed: %m\n");
+               msyslog(LOG_ERR, "GetModuleFileName(PGM_EXE_FILE) failed: %m");
                exit(1);
        }
 
        /* Initialize random file before OpenSSL checks */
        if (!init_randfile())
-               msyslog(LOG_ERR, "Unable to initialize .rnd file\n");
+               msyslog(LOG_ERR, "Unable to initialize .rnd file");
 
 #pragma warning(push)
 #pragma warning(disable: 4127) /* conditional expression is constant */
@@ -749,7 +749,7 @@ init_winnt_time(void)
 
        /* Determine the existing system time slewing */
        if (!GetSystemTimeAdjustment(&adjclockperiod, &clockperiod, &noslew)) {
-               msyslog(LOG_ERR, "GetSystemTimeAdjustment failed: %m\n");
+               msyslog(LOG_ERR, "GetSystemTimeAdjustment failed: %m");
                exit(-1);
        }
 
@@ -791,7 +791,7 @@ init_winnt_time(void)
 
        /* get the performance counter ticks per second */
        if (!QueryPerformanceFrequency(&Freq) || !Freq.QuadPart) {
-               msyslog(LOG_ERR, "QueryPerformanceFrequency failed: %m\n");
+               msyslog(LOG_ERR, "QueryPerformanceFrequency failed: %m");
                exit(-1);
        }
 
@@ -1235,7 +1235,7 @@ lock_thread_to_processor(HANDLE thread)
        if (ThreadAffinityMask && 
            !SetThreadAffinityMask(thread, ThreadAffinityMask))
                msyslog(LOG_ERR, 
-                       "Unable to wire thread to mask %x: %m\n", 
+                       "Unable to wire thread to mask %x: %m", 
                        ThreadAffinityMask);
 }
 
index c5965aa40f6c77213c0dea89fbb3edae84c12cff..844f22f3629922e44b1ea9261ba95840e9f16c80 100644 (file)
@@ -167,7 +167,7 @@ sntp_main (
        if (HAVE_OPT(LOGFILE))
                open_logfile(OPT_ARG(LOGFILE));
 
-       msyslog(LOG_INFO, "%s\n", sntpVersion);
+       msyslog(LOG_INFO, "%s", sntpVersion);
 
        if (0 == argc && !HAVE_OPT(BROADCAST) && !HAVE_OPT(CONCURRENT)) {
                printf("%s: Must supply at least one of -b hostname, -c hostname, or hostname.\n",
@@ -1260,7 +1260,7 @@ handle_pkt(
                        disptxt[0] = '\0';
                }
 
-               msyslog(LOG_INFO, "%s %+.*f%s %s s%d%s\n", ts_str,
+               msyslog(LOG_INFO, "%s %+.*f%s %s s%d%s", ts_str,
                        digits, offset, disptxt,
                        hostnameaddr(hostname, host), stratum,
                        (time_adjusted)
index ec37a4b674be22469f835527e806b9754b0e2526..46c008dfd761d8b79d4b77f7e01b23fb82516c7f 100644 (file)
@@ -26,7 +26,7 @@ sendpkt (
        cc = sendto(rsock, (void *)pkt, len, 0, &dest->sa, 
                    SOCKLEN(dest));
        if (cc == SOCKET_ERROR) {
-               msyslog(LOG_ERR, "Send to %s failed, %m\n",
+               msyslog(LOG_ERR, "Send to %s failed, %m",
                        sptoa(dest));
                return FALSE;
        }
@@ -246,8 +246,8 @@ unusable:
                msyslog(LOG_ERR,
                        "%s response org expected to match sent xmt",
                        stoa(sender));
-               msyslog(LOG_ERR, "resp org: %s\n", prettydate(&resp_org));
-               msyslog(LOG_ERR, "sent xmt: %s\n", prettydate(&sent_xmt));
+               msyslog(LOG_ERR, "resp org: %s", prettydate(&resp_org));
+               msyslog(LOG_ERR, "sent xmt: %s", prettydate(&sent_xmt));
                return PACKET_UNUSEABLE;
        }