This commit adds a maildir_commit_message with a prototype consistent
with other kind of mailboxes, to simplify upcoming refactoring.
---
 mh.c | 7 ++++++-
 mx.c | 2 +-
 mx.h | 2 +-
 3 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/mh.c b/mh.c
index dd2c970..62c1e38 100644
--- a/mh.c
+++ b/mh.c
@@ -1463,7 +1463,7 @@ static int maildir_open_new_message (MESSAGE * msg, 
CONTEXT * dest, HEADER * hdr
  * 
  */
 
-int _maildir_commit_message (CONTEXT * ctx, MESSAGE * msg, HEADER * hdr)
+static int _maildir_commit_message (CONTEXT * ctx, MESSAGE * msg, HEADER * hdr)
 {
   char subdir[4];
   char suffix[16];
@@ -1533,6 +1533,11 @@ int _maildir_commit_message (CONTEXT * ctx, MESSAGE * 
msg, HEADER * hdr)
   }
 }
 
+int maildir_commit_message (CONTEXT * ctx, MESSAGE * msg)
+{
+  return _maildir_commit_message (ctx, msg, NULL);
+}
+
 /* 
  * commit a message to an MH folder.
  * 
diff --git a/mx.c b/mx.c
index 26ba68d..0788e1c 100644
--- a/mx.c
+++ b/mx.c
@@ -1368,7 +1368,7 @@ int mx_commit_message (MESSAGE *msg, CONTEXT *ctx)
     
     case MUTT_MAILDIR:
     {
-      r = _maildir_commit_message (ctx, msg, NULL);
+      r = maildir_commit_message (ctx, msg);
       break;
     }
     
diff --git a/mx.h b/mx.h
index 94f7b1a..1ae0e61 100644
--- a/mx.h
+++ b/mx.h
@@ -60,7 +60,7 @@ int mh_check_empty (const char *);
 
 int maildir_check_empty (const char *);
 
-int _maildir_commit_message (CONTEXT *, MESSAGE *, HEADER *);
+int maildir_commit_message (CONTEXT *, MESSAGE *);
 int mh_commit_message (CONTEXT *, MESSAGE *);
 
 FILE *maildir_open_find_message (const char *, const char *);
-- 
2.8.3

Reply via email to