summaryrefslogtreecommitdiffstats
path: root/mh.c
diff options
context:
space:
mode:
authorDamien Riegel <damien.riegel@gmail.com>2016-06-18 13:36:18 -0700
committerDamien Riegel <damien.riegel@gmail.com>2016-06-18 13:36:18 -0700
commit98428a086bd4e9bc68fa1f82181b8705feb85830 (patch)
tree464d19bb19447f0ffa9e52390e5f68df6b001232 /mh.c
parent3e064657c6a3f46ef24b20130a7745fe30b08476 (diff)
prepend maildir_commit_message function name with an underscore
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.
Diffstat (limited to 'mh.c')
-rw-r--r--mh.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mh.c b/mh.c
index d4e9c1dd..5e997f19 100644
--- a/mh.c
+++ b/mh.c
@@ -1469,7 +1469,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];
@@ -1501,7 +1501,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)
@@ -1524,7 +1524,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;
}
}
@@ -1657,7 +1657,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);