From 134a2b413290a82e3271465b9048268133fabf04 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 4 Sep 1998 18:26:45 +0000 Subject: 1998-09-04 Roland McGrath * lmail.c: Include and . --- daemons/lmail.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/daemons/lmail.c b/daemons/lmail.c index fbcd1ae7..89599837 100644 --- a/daemons/lmail.c +++ b/daemons/lmail.c @@ -1,6 +1,6 @@ /* Local mail delivery - Copyright (C) 1996, 1997 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. Written by Miles Bader @@ -33,6 +33,8 @@ #include #include #include +#include +#include #define OPT_FILE -5 @@ -140,7 +142,7 @@ bfree (char *blk, size_t blk_len) /* Read up to MAX chars from IN into BLK & BLK_LEN, which may be reused or freed. */ -static int +static int bread (int in, char *in_name, size_t max, char **blk, size_t *blk_len) { char *orig_blk = *blk; @@ -192,7 +194,7 @@ copy (int in, char *in_name, int out, char *out_name) return ex; } -static int +static int write_header (int out, char *out_name, struct params *params) { char *hdr; @@ -338,7 +340,7 @@ deliver (int msg, char *msg_name, char *rcpt, int flags, struct params *params) asprintf (&mbox, "%s/%s", params->mail_dir, rcpt); if (! mbox) return SYSERRX (ENOMEM, "%s", rcpt); - + do { /* First try to open an existing mailbox. */ -- cgit v1.2.3