summaryrefslogtreecommitdiff
path: root/pop3d.c
diff options
context:
space:
mode:
authorSunil Nimmagadda <sunil@nimmagadda.net>2014-08-31 16:35:21 +0500
committerSunil Nimmagadda <sunil@nimmagadda.net>2014-08-31 16:35:21 +0500
commit7c0a85acf1d4c71042869a1020577387d7b4096f (patch)
tree4022282572be60d688442ad53b2dee6ccdf795ad /pop3d.c
parent031a261fb6d7576b609795d6b695953ddc4ee10b (diff)
parent2bad8d69c0e76dcbeb0fccef0592822a40b17891 (diff)
Merge refactor branch.
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 cbd3ea3..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_init(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;