X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fali.c;h=41f92a6ead47fe6de0bea62ae6221dd7e5abf0dd;hb=a01a41d031c796b526329a4170eb23f0ac93b949;hp=737f68c76b73239b2caf70759999958777d1f5b8;hpb=9a33ff618b5901a3af815650d4b84d39ee96e529;p=mmh diff --git a/uip/ali.c b/uip/ali.c index 737f68c..41f92a6 100644 --- a/uip/ali.c +++ b/uip/ali.c @@ -2,8 +2,6 @@ /* * ali.c -- list nmh mail aliases * - * $Id$ - * * 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. @@ -51,8 +49,8 @@ extern struct aka *akahead; /* * prototypes */ -void print_aka (char *, int, int); -void print_usr (char *, int, int); +static void print_aka (char *, int, int); +static void print_usr (char *, int, int); int @@ -170,10 +168,11 @@ main (int argc, char **argv) } } - return done (0); + done (0); + return 1; } -void +static void print_aka (char *p, int list, int margin) { char c; @@ -213,7 +212,7 @@ print_aka (char *p, int list, int margin) pos = 1; } -void +static void print_usr (char *s, int list, int norm) { register char *cp, *pp, *vp; @@ -233,8 +232,8 @@ print_usr (char *s, int list, int norm) while ((cp = getname (pp))) { if ((np = getm (cp, NULL, 0, norm, NULL)) == NULL) continue; - if (!strcasecmp (mp->m_host, np->m_host) - && !strcasecmp (mp->m_mbox, np->m_mbox)) { + if (!mh_strcasecmp (mp->m_host, np->m_host) + && !mh_strcasecmp (mp->m_mbox, np->m_mbox)) { vp = vp ? add (ak->ak_name, add (",", vp)) : getcpy (ak->ak_name); mnfree (np);