nmh-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nmh-commits] [SCM] The nmh Mail Handling System branch, master, updated


From: David Levine
Subject: [Nmh-commits] [SCM] The nmh Mail Handling System branch, master, updated. 2ce001e1b0b7cc5366ea2804f66726e57910282b
Date: Sat, 14 Jan 2012 15:26:58 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The nmh Mail Handling System".

The branch, master has been updated
       via  2ce001e1b0b7cc5366ea2804f66726e57910282b (commit)
       via  e4ccf20dcb722d8110e2a22f03e960e8f9f67898 (commit)
       via  d6e99ba43296f69099e64845ef0f8e09b037a344 (commit)
      from  93cf33c07eed0e56b4f3a0d1c07ff183ac1510ef (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/nmh.git/commit/?id=2ce001e1b0b7cc5366ea2804f66726e57910282b


commit 2ce001e1b0b7cc5366ea2804f66726e57910282b
Author: David Levine <address@hidden>
Date:   Sat Jan 14 09:21:32 2012 -0600

    gcc -Wmissing-field-initializers noticed several struct initializations
    that didn't explicitly list all fields.  Most were of no consequence because
    they were for static data, so they were all initialized properly.  However,
    the two in mhlsbr.c were missing an initialization of other than their last
    field, and they contained some subsequent values other than zero.  So, those
    later fields were initialized incorrectly.  Also, changed the initialization
    of global.c_ovtxt from "" to NULL because free_queue () freed it if 
non-NULL,
    though I think the "" was always overwritten.

diff --git a/sbr/addrsbr.c b/sbr/addrsbr.c
index 649e06f..a99d9aa 100644
--- a/sbr/addrsbr.c
+++ b/sbr/addrsbr.c
@@ -361,7 +361,7 @@ ismymbox (struct mailname *np)
     char buffer[BUFSIZ];
     struct mailname *mp;
     static char *am = NULL;
-    static struct mailname mq={NULL};
+    static struct mailname mq;
 
     /*
      * If this is the first call, initialize
diff --git a/uip/mhlsbr.c b/uip/mhlsbr.c
index a0d1306..68a265d 100644
--- a/uip/mhlsbr.c
+++ b/uip/mhlsbr.c
@@ -134,11 +134,11 @@ static struct mcomp *fmthd = NULL;
 static struct mcomp *fmttl = NULL;
 
 static struct mcomp global = {
-    NULL, NULL, "", NULL, NULL, 0, -1, 80, -1, 40, BELL, 0
+    NULL, NULL, NULL, NULL, NULL, NULL, 0, -1, 80, -1, 40, BELL, NULL
 };
 
 static struct mcomp holder = {
-    NULL, NULL, NULL, NULL, NULL, 0, 0, 0, 0, 0, NOCOMPONENT, 0
+    NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0, 0, 0, NOCOMPONENT, NULL
 };
 
 struct pair {
diff --git a/uip/post.c b/uip/post.c
index 2048228..8845560 100644
--- a/uip/post.c
+++ b/uip/post.c
@@ -266,10 +266,10 @@ static char *fccfold[FCCS];       /* foldernames for 
FCC'ing       */
 
 static struct headers  *hdrtab;        /* table for the message we're doing */
 
-static struct mailname localaddrs={NULL};      /* local addrs     */
-static struct mailname netaddrs={NULL};                /* network addrs   */
-static struct mailname uuaddrs={NULL};         /* uucp addrs      */
-static struct mailname tmpaddrs={NULL};                /* temporary queue */
+static struct mailname localaddrs;             /* local addrs     */
+static struct mailname netaddrs;               /* network addrs   */
+static struct mailname uuaddrs;                        /* uucp addrs      */
+static struct mailname tmpaddrs;               /* temporary queue */
 
 #ifdef SMTPMTS
 static int snoop      = 0;
diff --git a/uip/replsbr.c b/uip/replsbr.c
index 7f0f523..ace850d 100644
--- a/uip/replsbr.c
+++ b/uip/replsbr.c
@@ -24,7 +24,7 @@ static int dftype=0;
 static char *badaddrs = NULL;
 static char *dfhost = NULL;
 
-static struct mailname mq = { NULL };
+static struct mailname mq;
 static int nodupcheck = 0;             /* If set, no check for duplicates */
 
 /*

http://git.savannah.gnu.org/cgit/nmh.git/commit/?id=e4ccf20dcb722d8110e2a22f03e960e8f9f67898


commit e4ccf20dcb722d8110e2a22f03e960e8f9f67898
Author: David Levine <address@hidden>
Date:   Sat Jan 14 09:19:49 2012 -0600

    configure.ac and aclocal.m4 instead of configure.in and acconfig.h.

diff --git a/docs/README.developers b/docs/README.developers
index af38412..2946d8c 100644
--- a/docs/README.developers
+++ b/docs/README.developers
@@ -19,7 +19,7 @@ GNU autoconf (<ftp://ftp.gnu.org/pub/gnu/autoconf/>).  Nmh is 
currently using
 a minimum of autoconf 2.61.
 
 Most of the configure-related files are automatically generated.  The only 
files
-you should need to manually edit are acconfig.h and configure.in.  Don't, for
+you should need to manually edit are configure.ac and aclocal.m4.  Don't, for
 instance, edit config.h.in.  Though it is an input file from the point of view
 of the users (and the configure script) it is an output file from the point of
 view of the developers (and the autoconf script).

http://git.savannah.gnu.org/cgit/nmh.git/commit/?id=d6e99ba43296f69099e64845ef0f8e09b037a344


commit d6e99ba43296f69099e64845ef0f8e09b037a344
Author: David Levine <address@hidden>
Date:   Sat Jan 14 09:16:16 2012 -0600

    Documented support of OURDEFS to pass compile flags to configure.

diff --git a/INSTALL b/INSTALL
index 79f8f6f..f1a40d2 100644
--- a/INSTALL
+++ b/INSTALL
@@ -33,11 +33,11 @@ need an ANSI C compiler such as gcc.
 
    ./configure [options]
 
-   This will check the configuration of your OS, and create the 
+   This will check the configuration of your OS, and create the
    include file config.h, as well as the various Makefiles.
 
-   The configure script accepts various options.  The options of 
-   most interest are listed in a section below.  To see the list 
+   The configure script accepts various options.  The options of
+   most interest are listed in a section below.  To see the list
    of all available options, you can run
 
    ./configure --help
@@ -68,8 +68,8 @@ need an ANSI C compiler such as gcc.
    injecting the message to a mail transfer agent (such as sendmail)
    on the local machine via SMTP.
 
-   If, instead, all your mail sending and receiving occurs on a 
-   remote POP/SMTP server, you will need to look at the values of the 
+   If, instead, all your mail sending and receiving occurs on a
+   remote POP/SMTP server, you will need to look at the values of the
    variables "localname", "pophost", and "servers":
 
     a) "localname" defines the hostname that nmh considers local.
@@ -125,13 +125,17 @@ the "configure" script does not know about, by either 
editing the user
 configuration section of the top level Makefile (after running configure)
 or giving "configure" initial values for these variables by setting them
 in the environment.  Using a Bourne-compatible shell (such as sh,ksh,zsh),
- 
+
 you can do that on the command line like this:
     CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
- 
+
 Or on systems that have the "env" program, you can do it like this:
     env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
 
+If you want to add to, not replace, compile flags, you can use
+OURDEFS with env or like this:
+    OURDEFS='-Wextra -Wno-sign-compare' ./configure
+
 ----------------------------------------
 Building nmh on additional architectures
 ----------------------------------------
@@ -140,7 +144,7 @@ This should restore the nmh source distribution back to its 
original
 state.  You can then configure nmh as above on other architectures in
 which you wish to build nmh.  Or alternatively, you can use a different
 build directory for each architecture.
- 
+
 ---------------------------------
 Using a different build directory
 ---------------------------------
@@ -151,7 +155,7 @@ architecture at the same time.  To do this, you must use a 
version of
 the directory where you want the object files and executables to go and
 run the "configure" script.  "configure" automatically checks for the
 source code in the directory that "configure" is in.  For example,
- 
+
     cd /usr/local/solaris/nmh
     /usr/local/src/nmh-1.0/configure
     make
@@ -179,7 +183,7 @@ Options for configure
 --enable-debug
      Enable debugging support.
 
---enable-masquerade[='draft_from mmailid username_extension']    
+--enable-masquerade[='draft_from mmailid username_extension']
      If this option is disabled, the mts.conf file will contain the
      line "masquerade: " (with no value), which may be manually edited
      later.  You may find it convenient to specify a value at

-----------------------------------------------------------------------

Summary of changes:
 INSTALL                |   24 ++++++++++++++----------
 docs/README.developers |    2 +-
 sbr/addrsbr.c          |    2 +-
 uip/mhlsbr.c           |    4 ++--
 uip/post.c             |    8 ++++----
 uip/replsbr.c          |    2 +-
 6 files changed, 23 insertions(+), 19 deletions(-)


hooks/post-receive
-- 
The nmh Mail Handling System



reply via email to

[Prev in Thread] Current Thread [Next in Thread]