X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/322f6f0518f2fca892733dea85d87c33fcb65e83..0d56141609e3b3f3834bce689e093ae4a8413944:/uip/dropsbr.c diff --git a/uip/dropsbr.c b/uip/dropsbr.c index 84435a2e..11ceba80 100644 --- a/uip/dropsbr.c +++ b/uip/dropsbr.c @@ -2,8 +2,6 @@ /* * dropsbr.c -- create/read/manipulate mail drops * - * $Id$ - * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. @@ -16,10 +14,7 @@ #include #include #include - -#ifdef HAVE_ERRNO_H -# include -#endif +#include #ifdef NTOHLSWAP # include @@ -469,8 +464,9 @@ mbx_size (int md, off_t start, off_t stop) int mbx_close (char *mailbox, int md) { - lkclose (md, mailbox); - return OK; + if (lkclose (md, mailbox) == 0) + return OK; + return NOTOK; }