X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fconflict.c;h=fdd6de20c20fcda3cec65aa9e026e26d14973516;hb=ced6090a330d3d83d0bce709f756aa3d7d65fea4;hp=b49c1cc5af3b4b109da99f1f26e7d6c85d283cd3;hpb=a485ed478abbd599d8c9aab48934e7a26733ecb1;p=mmh diff --git a/uip/conflict.c b/uip/conflict.c index b49c1cc..fdd6de2 100644 --- a/uip/conflict.c +++ b/uip/conflict.c @@ -1,10 +1,10 @@ /* - * conflict.c -- check for conflicts in mail system - * - * 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. - */ +** conflict.c -- check for conflicts in mail system +** +** 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 #include @@ -15,14 +15,14 @@ #include /* - * maximum number of directories that can - * be specified using -search switch. - */ +** maximum number of directories that can +** be specified using -search switch. +*/ #define NDIRS 100 /* - * Add space for group names, 100 at a time - */ +** Add space for group names, 100 at a time +*/ #define NGRPS 100 static struct swit switches[] = { @@ -45,8 +45,8 @@ extern struct aka *akahead; extern struct home *homehead; /* - * prototypes - */ +** prototypes +*/ void alias_files (int, char **); void pwd_names (void); void grp_names (void); @@ -150,10 +150,8 @@ alias_files (int akp, char **akv) if ((err = alias (akv[i])) != AK_OK) { setup (); fprintf (out, "aliasing error in %s - %s\n", akv[i], akerror (err)); - } - else - if (out && !mail) - fprintf (out, "alias file %s is ok\n", akv[i]); + } else if (out && !mail) + fprintf (out, "alias file %s is ok\n", akv[i]); } @@ -316,8 +314,7 @@ mdrop(char *drop) while ((dp = readdir (dd))) if (dp->d_name[0] != '.' && !check (dp->d_name)) { setup (); - fprintf (out, - "there is a maildrop for the unknown user %s in %s\n", + fprintf (out, "there is a maildrop for the unknown user %s in %s\n", dp->d_name, drop); hit++; } @@ -381,8 +378,8 @@ setup (void) #ifdef UCI /* - * UCI specific stuff for conflict - */ +** UCI specific stuff for conflict +*/ /* taken from */ @@ -427,8 +424,7 @@ endglent() { } struct grpldr *getglent () { - register char *cp, - **q; + register char *cp, **q; if (glp == NULL && !setglent ()) return NULL; @@ -495,8 +491,7 @@ ldr_names () { if (gp < NGRPS) { gldrs[gp++] = getcpy (gl->gl_name); gldrs[gp] = NULL; - } - else { + } else { setup (); fprintf (out, "more than %d groups in group leaders file%s\n", " (time to recompile)", NGRPS - 1);