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. ca34fbd0a5204d47ad019f64ef03d21ebd3397fd
Date: Sat, 14 Jan 2012 21:28:55 +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  ca34fbd0a5204d47ad019f64ef03d21ebd3397fd (commit)
      from  f77270883363b2407ba4588e20ab697535d45c50 (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=ca34fbd0a5204d47ad019f64ef03d21ebd3397fd


commit ca34fbd0a5204d47ad019f64ef03d21ebd3397fd
Author: David Levine <address@hidden>
Date:   Sat Jan 14 15:28:25 2012 -0600

    Fixed warnings from gcc -Wclobbered by adding volatile qualifiers.

diff --git a/uip/mhbuildsbr.c b/uip/mhbuildsbr.c
index 2a3f899..87ebf16 100644
--- a/uip/mhbuildsbr.c
+++ b/uip/mhbuildsbr.c
@@ -988,7 +988,8 @@ compose_content (CT ct)
     default:
        if (!ce->ce_file) {
            pid_t child_id;
-           int i, xstdout, len, buflen;
+           int i, len, buflen;
+           volatile int xstdout;
            char *bp, **ap, *cp;
            char *vec[4], buffer[BUFSIZ];
            FILE *out;
diff --git a/uip/mhlsbr.c b/uip/mhlsbr.c
index 16325bf..4c2558f 100644
--- a/uip/mhlsbr.c
+++ b/uip/mhlsbr.c
@@ -790,7 +790,7 @@ parse (void)
 
 
 static void
-process (char *folder, char *fname, int ofilen, int ofilec)
+process (char *folder, char *volatile fname, int ofilen, int ofilec)
 {
     char *cp = NULL;
     FILE *fp = NULL;
diff --git a/uip/mhparse.c b/uip/mhparse.c
index 1b49efd..ea78b42 100644
--- a/uip/mhparse.c
+++ b/uip/mhparse.c
@@ -2472,7 +2472,8 @@ InitFTP (CT ct)
 static int
 openFTP (CT ct, char **file)
 {
-    int        cachetype, caching, fd;
+    int        cachetype, fd;
+    volatile int caching;
     int len, buflen;
     char *bp, *ftp, *user, *pass;
     char buffer[BUFSIZ], cachefile[BUFSIZ];
diff --git a/uip/rcvtty.c b/uip/rcvtty.c
index 74d19d5..8ce068d 100644
--- a/uip/rcvtty.c
+++ b/uip/rcvtty.c
@@ -217,7 +217,8 @@ static int
 message_fd (char **vec)
 {
     pid_t child_id;
-    int bytes, fd, seconds;
+    int bytes, seconds;
+    volatile int fd;
     char tmpfil[BUFSIZ];
     struct stat st;
 
diff --git a/uip/sendsbr.c b/uip/sendsbr.c
index 6215219..09126c2 100644
--- a/uip/sendsbr.c
+++ b/uip/sendsbr.c
@@ -771,10 +771,11 @@ splitmsg (char **vec, int vecp, char *drft, struct stat 
*st, int delay)
  */
 
 static int
-sendaux (char **vec, int vecp, char *drft, struct stat *st)
+sendaux (char **vec, int vecp, char *volatile drft, struct stat *st)
 {
     pid_t child_id;
-    int i, status, fd, fd2;
+    int i, status;
+    volatile int fd, fd2;
     char backup[BUFSIZ], buf[BUFSIZ];
 
     fd = pushsw ? tmp_fd () : NOTOK;
diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c
index c3d93ff..3009e0f 100644
--- a/uip/whatnowsbr.c
+++ b/uip/whatnowsbr.c
@@ -811,7 +811,7 @@ copyf (char *ifile, char *ofile)
  */
 
 static int
-sendfile (char **arg, char *file, int pushsw)
+sendfile (char **arg, char *file, volatile int pushsw)
 {
     pid_t child_id;
     int i, vecp;

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

Summary of changes:
 uip/mhbuildsbr.c |    3 ++-
 uip/mhlsbr.c     |    2 +-
 uip/mhparse.c    |    3 ++-
 uip/rcvtty.c     |    3 ++-
 uip/sendsbr.c    |    5 +++--
 uip/whatnowsbr.c |    2 +-
 6 files changed, 11 insertions(+), 7 deletions(-)


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



reply via email to

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