projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib-network -> lib-sys.
[apps/madmutt.git]
/
mbox.c
diff --git
a/mbox.c
b/mbox.c
index
e140ee4
..
d4d3a08
100644
(file)
--- a/
mbox.c
+++ b/
mbox.c
@@
-13,10
+13,20
@@
# include "config.h"
#endif
# include "config.h"
#endif
+#include <sys/stat.h>
+#include <dirent.h>
+#include <string.h>
+#include <utime.h>
+#include <sys/file.h>
+#include <errno.h>
+#include <unistd.h>
+#include <fcntl.h>
+
#include <lib-lib/mem.h>
#include <lib-lib/str.h>
#include <lib-lib/macros.h>
#include <lib-lib/file.h>
#include <lib-lib/mem.h>
#include <lib-lib/str.h>
#include <lib-lib/macros.h>
#include <lib-lib/file.h>
+#include <lib-lib/debug.h>
#include "mutt.h"
#include "mx.h"
#include "mutt.h"
#include "mx.h"
@@
-27,17
+37,6
@@
#include "copy.h"
#include "compress.h"
#include "copy.h"
#include "compress.h"
-#include "lib/debug.h"
-
-#include <sys/stat.h>
-#include <dirent.h>
-#include <string.h>
-#include <utime.h>
-#include <sys/file.h>
-#include <errno.h>
-#include <unistd.h>
-#include <fcntl.h>
-
/* struct used by mutt_sync_mailbox() to store new offsets */
struct m_update_t {
short valid;
/* struct used by mutt_sync_mailbox() to store new offsets */
struct m_update_t {
short valid;
@@
-48,7
+47,7
@@
struct m_update_t {
};
};
-static int mbox_open_new_message (MESSAGE * msg, CONTEXT * dest, HEADER * hdr)
+static int mbox_open_new_message (MESSAGE * msg, CONTEXT * dest, HEADER * hdr
__attribute__ ((unused))
)
{
msg->fp = dest->fp;
return 0;
{
msg->fp = dest->fp;
return 0;
@@
-520,7
+519,7
@@
static int mbox_check_mailbox (CONTEXT* ctx, int* index_hint, int lock) {
* 0 success
* -1 failure
*/
* 0 success
* -1 failure
*/
-static int _mbox_sync_mailbox (CONTEXT * ctx, int unused, int *index_hint)
+static int _mbox_sync_mailbox (CONTEXT * ctx, int unused
__attribute__ ((unused))
, int *index_hint)
{
char tempfile[_POSIX_PATH_MAX];
char buf[32];
{
char tempfile[_POSIX_PATH_MAX];
char buf[32];
@@
-1089,7
+1088,7
@@
int mbox_is_magic (const char* path, struct stat* st) {
return (magic);
}
return (magic);
}
-static int commit_message (MESSAGE* msg, CONTEXT* ctx, int mbox) {
+static int commit_message (MESSAGE* msg, CONTEXT* ctx
__attribute__ ((unused))
, int mbox) {
if ((mbox && fputc ('\n', msg->fp) == EOF) ||
(!mbox && fputs (MMDF_SEP, msg->fp) == EOF))
return (-1);
if ((mbox && fputc ('\n', msg->fp) == EOF) ||
(!mbox && fputs (MMDF_SEP, msg->fp) == EOF))
return (-1);