summaryrefslogtreecommitdiff
path: root/maildrop.c
diff options
context:
space:
mode:
authorSunil Nimmagadda <sunil@nimmagadda.net>2014-08-27 11:49:41 +0500
committerSunil Nimmagadda <sunil@nimmagadda.net>2014-08-27 11:49:41 +0500
commit3dc10527bb9d7d8b22369260976a897222e4297c (patch)
treea2aacc954d89ed8bb573bfaeabcb601e8ee74d71 /maildrop.c
parentbf0ea9ea9efb05be1e6cbb23574b001fd0372b79 (diff)
Rename to differentiate setup and init operations.
Diffstat (limited to 'maildrop.c')
-rw-r--r--maildrop.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/maildrop.c b/maildrop.c
index 12861f7..5562195 100644
--- a/maildrop.c
+++ b/maildrop.c
@@ -48,7 +48,7 @@ static size_t expand(char *, const char *, size_t, struct passwd *);
static struct mdrop m;
pid_t
-maildrop_init(uint32_t session_id, int pair[2], struct passwd *pw,
+maildrop_setup(uint32_t session_id, int pair[2], struct passwd *pw,
int type, const char *path)
{
struct imsgev iev_session;
@@ -176,6 +176,8 @@ session_imsgev(struct imsgev *iev, int code, struct imsg *imsg)
switch (code) {
case IMSGEV_IMSG:
switch (imsg->hdr.type) {
+ case IMSG_MAILDROP_INIT:
+ break;
case IMSG_MAILDROP_UPDATE:
update(iev, imsg, mb);
break;