diff options
author | Sunil Nimmagadda <sunil@nimmagadda.net> | 2014-08-27 12:46:39 +0500 |
---|---|---|
committer | Sunil Nimmagadda <sunil@nimmagadda.net> | 2014-08-27 12:46:39 +0500 |
commit | c2736fe4b58830f0ab987e4c1f0c1eadca6d7306 (patch) | |
tree | 4f6ddd1d19a781e07757e0cde71f00e56307f8f3 /pop3d.c | |
parent | 3dc10527bb9d7d8b22369260976a897222e4297c (diff) |
mtype, mpath are accessible to maildrop, simplify setup parameters.
Diffstat (limited to 'pop3d.c')
-rw-r--r-- | pop3d.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |