Reformated comments and long lines
[mmh] / uip / aliasbr.c
index 752cda7..094b1a5 100644 (file)
@@ -1,10 +1,10 @@
 /*
- * aliasbr.c -- new aliasing mechanism
- *
- * 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.
- */
+** aliasbr.c -- new aliasing mechanism
+**
+** 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/aliasbr.h>
@@ -22,8 +22,8 @@ struct home *homehead = NULL;
 struct home *hometail = NULL;
 
 /*
- * prototypes
- */
+** prototypes
+*/
 int alias (char *);
 int akvisible (void);
 void init_pw (void);
@@ -364,8 +364,7 @@ addgroup (struct aka *ak, char *grp)
                                break;
                        }
 #ifdef DBMPWD
-               if ((pw = getpwnam(gp)))
-               {
+               if ((pw = getpwnam(gp))) {
                                hmalloc(pw);
                                add_aka (ak, gp);
                }
@@ -488,22 +487,21 @@ init_pw (void)
 #ifdef DBMPWD
        static int init;
 
-       if (!init)
-       {
-                 /* if the list has yet to be initialized */
-                       /* zap the list, and rebuild from scratch */
-                       homehead=NULL;
-                       hometail=NULL;
-                       init++;
+       if (!init) {
+               /* if the list has yet to be initialized */
+               /* zap the list, and rebuild from scratch */
+               homehead=NULL;
+               hometail=NULL;
+               init++;
 #endif /* DBMPWD */
 
-       setpwent ();
+               setpwent ();
 
-       while ((pw = getpwent ()))
-               if (!hmalloc (pw))
-                       break;
+               while ((pw = getpwent ()))
+                       if (!hmalloc (pw))
+                               break;
 
-       endpwent ();
+               endpwent ();
 #ifdef DBMPWD
        }
 #endif /* DBMPWD */
@@ -576,10 +574,11 @@ seek_home (char *name)
 
 #ifdef DBMPWD
        /*
-        * The only place where there might be problems.
-        * This assumes that ALL usernames are kept in lowercase.
-        */
-       for (c = name, c1 = lname; *c && (c1 - lname < sizeof(lname) - 1); c++, c1++) {
+       ** The only place where there might be problems.
+       ** This assumes that ALL usernames are kept in lowercase.
+       */
+       for (c = name, c1 = lname; *c && (c1 - lname < sizeof(lname) - 1);
+                       c++, c1++) {
                if (isalpha(*c) && isupper(*c))
                        *c1 = tolower (*c);
                else