Reformated comments and long lines
[mmh] / uip / mhlist.c
index 1cd8357..91b11e7 100644 (file)
@@ -1,10 +1,10 @@
 /*
- * mhlist.c -- list the contents of MIME messages
- *
- * This code is Copyright (c) 2002, by the authors of nmh.  See the
- * COPYRIGHT file in the root directory of the nmh distribution for
- * complete copyright information.
- */
+** mhlist.c -- list the contents of MIME messages
+**
+** This code is Copyright (c) 2002, by the authors of nmh.  See the
+** COPYRIGHT file in the root directory of the nmh distribution for
+** complete copyright information.
+*/
 
 #include <h/mh.h>
 #include <fcntl.h>
@@ -56,8 +56,8 @@ static struct swit switches[] = {
        { "help", 0 },
 
 /*
- * switches for debugging
- */
+** switches for debugging
+*/
 #define DEBUGSW  15
        { "debug", -5 },
        { NULL, 0 }
@@ -81,9 +81,9 @@ extern char *types[NTYPES + 1];
 extern int userrs;
 
 /*
- * This is currently needed to keep mhparse happy.
- * This needs to be changed.
- */
+** This is currently needed to keep mhparse happy.
+** This needs to be changed.
+*/
 pid_t xpid  = 0;
 
 int debugsw = 0;
@@ -109,8 +109,8 @@ extern CT *cts;
 void freects_done (int) NORETURN;
 
 /*
- * static prototypes
- */
+** static prototypes
+*/
 static RETSIGTYPE pipeser (int);
 
 
@@ -140,8 +140,8 @@ main (int argc, char **argv)
        argp = arguments;
 
        /*
-        * Parse arguments
-        */
+       ** Parse arguments
+       */
        while ((cp = *argp++)) {
                if (*cp == '-') {
                        switch (smatch (++cp, switches)) {
@@ -260,10 +260,10 @@ do_cache:
        cache_private = getcpy (m_maildir (cache_private));
 
        /*
-        * Check for storage directory.  If specified,
-        * then store temporary files there.  Else we
-        * store them in standard nmh directory.
-        */
+       ** Check for storage directory.  If specified,
+       ** then store temporary files there.  Else we
+       ** store them in standard nmh directory.
+       */
        if ((cp = context_find (nmhstorage)) && *cp)
                tmp = concat (cp, "/", invo_name, NULL);
        else
@@ -276,8 +276,8 @@ do_cache:
                adios (NULL, "cannot specify msg and file at same time!");
 
        /*
-        * check if message is coming from file
-        */
+       ** check if message is coming from file
+       */
        if (file) {
                if (!(cts = (CT *) calloc ((size_t) 2, sizeof(*cts))))
                        adios (NULL, "out of memory");
@@ -287,8 +287,8 @@ do_cache:
                        *ctp++ = ct;
        } else {
                /*
-                * message(s) are coming from a folder
-                */
+               ** message(s) are coming from a folder
+               */
                if (!msgs.size)
                        app_msgarg(&msgs, "cur");
                if (!folder)
@@ -312,7 +312,8 @@ do_cache:
                                done (1);
                seq_setprev (mp);  /* set the previous-sequence */
 
-               if (!(cts = (CT *) calloc ((size_t) (mp->numsel + 1), sizeof(*cts))))
+               if (!(cts = (CT *) calloc ((size_t) (mp->numsel + 1),
+                               sizeof(*cts))))
                        adios (NULL, "out of memory");
                ctp = cts;
 
@@ -335,8 +336,8 @@ do_cache:
        SIGNAL (SIGPIPE, pipeser);
 
        /*
-        * Get the associated umask for the relevant contents.
-        */
+       ** Get the associated umask for the relevant contents.
+       */
        for (ctp = cts; *ctp; ctp++) {
                struct stat st;
 
@@ -350,8 +351,8 @@ do_cache:
        }
 
        /*
-        * List the message content
-        */
+       ** List the message content
+       */
        list_all_messages (cts, headsw, sizesw, verbosw, debugsw);
 
        /* Now free all the structures for the content */