projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed variable declaration so older compilers will not complain.
[mmh]
/
uip
/
ali.c
diff --git
a/uip/ali.c
b/uip/ali.c
index
5b38b83
..
8513092
100644
(file)
--- a/
uip/ali.c
+++ b/
uip/ali.c
@@
-3,12
+3,17
@@
* ali.c -- list nmh mail aliases
*
* $Id$
* 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.
*/
#include <h/mh.h>
#include <h/addrsbr.h>
#include <h/aliasbr.h>
*/
#include <h/mh.h>
#include <h/addrsbr.h>
#include <h/aliasbr.h>
-#include <zotnet/mts/mts.h>
+#include <h/mts.h>
+#include <h/utils.h>
/*
* maximum number of names
/*
* maximum number of names
@@
-46,8
+51,8
@@
extern struct aka *akahead;
/*
* prototypes
*/
/*
* 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
int
@@
-165,10
+170,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;
print_aka (char *p, int list, int margin)
{
char c;
@@
-208,7
+214,7
@@
print_aka (char *p, int list, int margin)
pos = 1;
}
pos = 1;
}
-void
+static void
print_usr (char *s, int list, int norm)
{
register char *cp, *pp, *vp;
print_usr (char *s, int list, int norm)
{
register char *cp, *pp, *vp;
@@
-228,8
+234,8
@@
print_usr (char *s, int list, int norm)
while ((cp = getname (pp))) {
if ((np = getm (cp, NULL, 0, norm, NULL)) == NULL)
continue;
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);
vp = vp ? add (ak->ak_name, add (",", vp))
: getcpy (ak->ak_name);
mnfree (np);