]> diplodocus.org Git - nmh/blobdiff - uip/dropsbr.c
showfile.c: Move interface to own file.
[nmh] / uip / dropsbr.c
index 40ec9b806451feb55949738fbb41eb98a38f0e5e..733e6e6e4701681d4bdb5873b8e78e85cc2d0da5 100644 (file)
@@ -5,12 +5,14 @@
  * complete copyright information.
  */
 
  * complete copyright information.
  */
 
-#include <h/nmh.h>
-#include <h/mh.h>
-#include <h/utils.h>
-#include <h/dropsbr.h>
-#include <h/mts.h>
-#include <h/tws.h>
+#include "h/nmh.h"
+#include "h/mh.h"
+#include "sbr/strindex.h"
+#include "sbr/error.h"
+#include "h/utils.h"
+#include "h/dropsbr.h"
+#include "h/mts.h"
+#include "h/tws.h"
 #include "sbr/lock_file.h"
 #include "sbr/m_mktemp.h"
 #include <fcntl.h>
 #include "sbr/lock_file.h"
 #include "sbr/m_mktemp.h"
 #include <fcntl.h>
@@ -187,7 +189,7 @@ mbx_copy (char *mailbox, int mbx_style, int md, int fd,
            if (write (md, MMDF_DELIM, j) != j)
                return NOTOK;
 
            if (write (md, MMDF_DELIM, j) != j)
                return NOTOK;
 
-           return (i != NOTOK ? OK : NOTOK);
+            return i == NOTOK ? NOTOK : OK;
 
        case MBOX_FORMAT:
            if ((j = dup (fd)) == NOTOK)
 
        case MBOX_FORMAT:
            if ((j = dup (fd)) == NOTOK)