Reformated comments and long lines
[mmh] / uip / msgchk.c
index 5f31685..0b2f3eb 100644 (file)
@@ -1,10 +1,10 @@
 /*
- * msgchk.c -- check for mail
- *
- * 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.
- */
+** msgchk.c -- check for mail
+**
+** 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 <h/mts.h>
@@ -27,9 +27,9 @@ static struct swit switches[] = {
 };
 
 /*
- * Maximum numbers of users we can check (plus
- * one for the NULL vector at the end).
- */
+** Maximum numbers of users we can check (plus
+** one for the NULL vector at the end).
+*/
 #define MAXVEC  51
 
 #define NT_NONE  0x0
@@ -47,8 +47,8 @@ static struct swit switches[] = {
 
 
 /*
- * static prototypes
- */
+** static prototypes
+*/
 static int donote (char *, int);
 static int checkmail (char *, char *, int, int, int);
 
@@ -180,7 +180,8 @@ donote (char *cp, int ntflag)
                        return NT_NMAI;
        }
 
-       return 0; /* Before 1999-07-15, garbage was returned if control got here. */
+       /* Before 1999-07-15, garbage was returned if control got here. */
+       return 0;
 }
 
 
@@ -191,7 +192,9 @@ checkmail (char *user, char *home, int datesw, int notifysw, int personal)
        char buffer[BUFSIZ];
        struct stat st;
 
-       snprintf (buffer, sizeof(buffer), "%s/%s", mmdfldir[0] ? mmdfldir : home, mmdflfil[0] ? mmdflfil : user);
+       snprintf (buffer, sizeof(buffer), "%s/%s",
+                       mmdfldir[0] ? mmdfldir : home,
+                       mmdflfil[0] ? mmdflfil : user);
        if (datesw) {
                st.st_size = 0;
                st.st_atime = st.st_mtime = 0;
@@ -203,7 +206,8 @@ checkmail (char *user, char *home, int datesw, int notifysw, int personal)
                if (notifysw & NT_MAIL) {
                        printf (personal ? "You have " : "%s has ", user);
                        if (mf & UUCPOK)
-                               printf ("%s old-style bell", mf & UUCPOLD ? "old" : "new");
+                               printf ("%s old-style bell",
+                                               mf & UUCPOLD ? "old" : "new");
                        if ((mf & UUCPOK) && (mf & MMDFOK))
                                printf (" and ");
                        if (mf & MMDFOK)
@@ -218,7 +222,8 @@ checkmail (char *user, char *home, int datesw, int notifysw, int personal)
        else {
                if (notifysw & NT_NMAI)
                        printf (personal ? "You don't %s%s" : "%s doesn't %s",
-                                       personal ? "" : user, "have any mail waiting");
+                                       personal ? "" : user,
+                                       "have any mail waiting");
                else
                        notifysw = 0;