summaryrefslogtreecommitdiff
path: root/pop3d.c
diff options
context:
space:
mode:
authorSunil Nimmagadda <sunil@nimmagadda.net>2014-08-27 12:46:39 +0500
committerSunil Nimmagadda <sunil@nimmagadda.net>2014-08-27 12:46:39 +0500
commitc2736fe4b58830f0ab987e4c1f0c1eadca6d7306 (patch)
tree4f6ddd1d19a781e07757e0cde71f00e56307f8f3 /pop3d.c
parent3dc10527bb9d7d8b22369260976a897222e4297c (diff)
mtype, mpath are accessible to maildrop, simplify setup parameters.
Diffstat (limited to 'pop3d.c')
-rw-r--r--pop3d.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pop3d.c b/pop3d.c
index 26d048c..dd71cb9 100644
--- a/pop3d.c
+++ b/pop3d.c
@@ -47,8 +47,8 @@ static enum m_type m_type(const char *);
static void usage(void);
static struct imsgev iev_pop3e;
-static const char *mpath;
-static int mtype = M_MBOX;
+const char *mpath;
+int mtype = M_MBOX;
int
main(int argc, char *argv[])
@@ -172,7 +172,7 @@ authenticate(struct imsgev *iev, struct imsg *imsg)
if ((pw = getpwnam(req->user)) == NULL)
fatalx("authenticate: getpwnam");
- if (maildrop_setup(imsg->hdr.peerid, pair, pw, mtype, mpath) == -1) {
+ if (maildrop_setup(imsg->hdr.peerid, pair, pw) == -1) {
logit(LOG_INFO, "%u: unable to fork maildrop process",
imsg->hdr.peerid);
pair[0] = -1;