]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
autogen-5.11.3 upgrade
authorHarlan Stenn <stenn@ntp.org>
Sat, 20 Nov 2010 05:18:39 +0000 (00:18 -0500)
committerHarlan Stenn <stenn@ntp.org>
Sat, 20 Nov 2010 05:18:39 +0000 (00:18 -0500)
bk: 4ce75a2f1_r0y384fCpl36glggpUrg

sntp/libopts/Makefile.am
sntp/libopts/ag-char-map.h
sntp/libopts/configfile.c
sntp/libopts/genshell.c
sntp/libopts/genshell.h
sntp/libopts/proto.h
sntp/libopts/value-type.h
sntp/libopts/xat-attribute.h

index 43dfb0abceaa2f0ec14d5b36eb836fe96626f83c..11c6078cca418f37ba4b7a6a08363ee645b9a48b 100644 (file)
@@ -13,11 +13,11 @@ EXTRA_DIST              = \
     MakeDefs.inc            README                  ag-char-map.h  \
     autoopts/usage-txt.h    autoopts/options.h      autoopts.c  \
     autoopts.h              boolean.c               compat/strchr.c  \
-    compat/windows-config.h compat/strdup.c         compat/compat.h  \
-    compat/snprintf.c       compat/pathfind.c       configfile.c  \
+    compat/strdup.c         compat/compat.h         compat/windows-config.h  \
+    compat/pathfind.c       compat/snprintf.c       configfile.c  \
     cook.c                  enumeration.c           environment.c  \
     file.c                  genshell.c              genshell.h  \
-    load.c                  m4/libopts.m4           m4/liboptschk.m4  \
+    load.c                  m4/liboptschk.m4        m4/libopts.m4  \
     makeshell.c             nested.c                numeric.c  \
     parse-duration.c        parse-duration.h        pgusage.c  \
     proto.h                 putshell.c              reset.c  \
index 3ce10de6bce2e902406c8d07d974a1e0cf1aef20..33c931d99358a1ae796e207458da047d409553d3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *   Character mapping generated 11/16/10 17:41:46
+ *   Character mapping generated 11/18/10 11:54:12
  *
  *  This file contains the character classifications
  *  used by AutoGen and AutoOpts for identifying tokens.
index 1fbe201a67bf7e7d34cab0e4a818c991207232a2..2ee062a8e5efe37fefddafdee5b415cafbce812c 100644 (file)
@@ -1,7 +1,7 @@
 /**
  * \file configfile.c
  *
- *  Time-stamp:      "2010-11-07 14:43:09 bkorb"
+ *  Time-stamp:      "2010-11-18 08:24:46 bkorb"
  *
  *  configuration/rc/ini file handling.
  *
@@ -647,11 +647,13 @@ aoflags_directive(tOptions * pOpts, char * pzText)
 static char *
 program_directive(tOptions * pOpts, char * pzText)
 {
-    char * ttl;
-    size_t ttl_len  = asprintf(&ttl, "<?%s", zCfgProg);
+    static char const ttlfmt[] = "<?";
+    size_t ttl_len  = sizeof(ttlfmt) + strlen(zCfgProg);
+    char * ttl      = AGALOC(ttl_len, "prog title");
     size_t name_len = strlen(pOpts->pzProgName);
 
-    (void) ttl_len;
+    memcpy(ttl, ttlfmt, sizeof(ttlfmt) - 1);
+    strcpy(ttl + sizeof(ttlfmt) - 1, zCfgProg);
 
     do  {
         while (IS_WHITESPACE_CHAR(*++pzText))  ;
@@ -665,7 +667,7 @@ program_directive(tOptions * pOpts, char * pzText)
         pzText = strstr(pzText, ttl);
     } while (pzText != NULL);
 
-    free(ttl);
+    AGFREE(ttl);
     if (pzText != NULL)
         for (;;) {
             if (*pzText == NUL) {
index af9db94ac49ece32f99829ec42bc6fef03e61944..059f8869c4eba93d01121b1ee61ea91e0e14e3e9 100644 (file)
@@ -2,7 +2,7 @@
  *  
  *  DO NOT EDIT THIS FILE   (genshell.c)
  *  
- *  It has been AutoGen-ed  November 16, 2010 at 05:41:46 PM by AutoGen 5.11.2pre7
+ *  It has been AutoGen-ed  November 18, 2010 at 11:54:12 AM by AutoGen 5.11.2
  *  From the definitions    genshell.def
  *  and the template file   options
  *
index d547ea1a272b3834362eef6f8f8ca1f4c40e2c5b..507788b3411f40e3399172879df3d861a99ac92a 100644 (file)
@@ -2,7 +2,7 @@
  *  
  *  DO NOT EDIT THIS FILE   (genshell.h)
  *  
- *  It has been AutoGen-ed  November 16, 2010 at 05:41:46 PM by AutoGen 5.11.2pre7
+ *  It has been AutoGen-ed  November 18, 2010 at 11:54:12 AM by AutoGen 5.11.2
  *  From the definitions    genshell.def
  *  and the template file   options
  *
index bc4a49f03111926a726119c059a19d8fc8af069f..13ce379a665314b802707b341dd2037aadeab120 100644 (file)
@@ -1,7 +1,7 @@
 /* -*- buffer-read-only: t -*- vi: set ro:
  *
  * Prototypes for autoopts
- * Generated Tue Nov 16 17:41:54 PST 2010
+ * Generated Thu Nov 18 11:54:20 PST 2010
  */
 #ifndef AUTOOPTS_PROTO_H_GUARD
 #define AUTOOPTS_PROTO_H_GUARD 1
index 955bceeea071cc24c0f1df82a462a54bf8f7039b..16975e6b92f3be813c56f530d75f96fe62f71703 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Generated header for gperf generated source Tue Nov 16 17:41:46 PST 2010
+ *  Generated header for gperf generated source Thu Nov 18 11:54:12 PST 2010
  *  This file enumerates the list of names and declares the
  *  procedure for mapping string names to the enum value.
  */
index ea3e9a623bf95c1832c78fa26b4dac7ea31a702e..2e6ca668472e0011f46e280117697f8c47441dbb 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Generated header for gperf generated source Tue Nov 16 17:41:46 PST 2010
+ *  Generated header for gperf generated source Thu Nov 18 11:54:12 PST 2010
  *  This file enumerates the list of names and declares the
  *  procedure for mapping string names to the enum value.
  */