]> git.marmaro.de Git - mmh/blobdiff - uip/dropsbr.c
Merge branch 'fileproc_mhlproc_to_post'
[mmh] / uip / dropsbr.c
index 3bd5c9beeefc905c2430f1e0efd45a6bdd269592..11ceba808db8947e0f8d271c1a4fd5a66c0007f9 100644 (file)
 #include <h/dropsbr.h>
 #include <h/mts.h>
 #include <h/tws.h>
-
-#ifdef HAVE_ERRNO_H
-# include <errno.h>
-#endif
+#include <errno.h>
 
 #ifdef NTOHLSWAP
 # include <netinet/in.h>
@@ -467,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;
 }