Basically, rename maildir_commit_message to _maildir_commit_message.
This commit is preparatory to make the maildir_commit_message symbol
available for further use.

Symbols starting with underscore should be avoided but this one is long
enough to prevent collision.
---
 mh.c | 8 ++++----
 mx.c | 2 +-
 mx.h | 2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/mh.c b/mh.c
index 448297f..dd2c970 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)
+int _maildir_commit_message (CONTEXT * ctx, MESSAGE * msg, HEADER * hdr)
 {
   char subdir[4];
   char suffix[16];
@@ -1495,7 +1495,7 @@ int maildir_commit_message (CONTEXT * ctx, MESSAGE * msg, 
HEADER * hdr)
              NONULL (Hostname), suffix);
     snprintf (full, _POSIX_PATH_MAX, "%s/%s", ctx->path, path);
 
-    dprint (2, (debugfile, "maildir_commit_message (): renaming %s to %s.\n",
+    dprint (2, (debugfile, "_maildir_commit_message (): renaming %s to %s.\n",
                msg->path, full));
 
     if (safe_rename (msg->path, full) == 0)
@@ -1518,7 +1518,7 @@ int maildir_commit_message (CONTEXT * ctx, MESSAGE * msg, 
HEADER * hdr)
        ut.modtime = msg->received;
        if (utime (full, &ut))
        {
-         mutt_perror (_("maildir_commit_message(): unable to set time on 
file"));
+         mutt_perror (_("_maildir_commit_message(): unable to set time on 
file"));
          return -1;
        }
       }
@@ -1651,7 +1651,7 @@ static int mh_rewrite_message (CONTEXT * ctx, int msgno)
     strfcpy (partpath, h->path, _POSIX_PATH_MAX);
 
     if (ctx->magic == MUTT_MAILDIR)
-      rc = maildir_commit_message (ctx, dest, h);
+      rc = _maildir_commit_message (ctx, dest, h);
     else
       rc = _mh_commit_message (ctx, dest, h, 0);
 
diff --git a/mx.c b/mx.c
index 54dc530..26ba68d 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, NULL);
       break;
     }
     
diff --git a/mx.h b/mx.h
index de0a0a6..94f7b1a 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 *, HEADER *);
 int mh_commit_message (CONTEXT *, MESSAGE *);
 
 FILE *maildir_open_find_message (const char *, const char *);
-- 
2.8.3

Reply via email to