mh_commit_message is only called in one place with the header parameter
set to NULL. To make the commit function consistent with other
mailboxes, which only takes ctx and msg as parameters, remove this
unused parameter.
---
mh.c | 4 ++--
mx.c | 2 +-
mx.h | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/mh.c b/mh.c
index 90549ba..448297f 100644
--- a/mh.c
+++ b/mh.c
@@ -1614,9 +1614,9 @@ static int _mh_commit_message (CONTEXT * ctx, MESSAGE *
msg, HEADER * hdr,
return 0;
}
-int mh_commit_message (CONTEXT * ctx, MESSAGE * msg, HEADER * hdr)
+int mh_commit_message (CONTEXT * ctx, MESSAGE * msg)
{
- return _mh_commit_message (ctx, msg, hdr, 1);
+ return _mh_commit_message (ctx, msg, NULL, 1);
}
diff --git a/mx.c b/mx.c
index af95ec6..54dc530 100644
--- a/mx.c
+++ b/mx.c
@@ -1374,7 +1374,7 @@ int mx_commit_message (MESSAGE *msg, CONTEXT *ctx)
case MUTT_MH:
{
- r = mh_commit_message (ctx, msg, NULL);
+ r = mh_commit_message (ctx, msg);
break;
}
}
diff --git a/mx.h b/mx.h
index 6bc11b4..de0a0a6 100644
--- a/mx.h
+++ b/mx.h
@@ -61,7 +61,7 @@ int mh_check_empty (const char *);
int maildir_check_empty (const char *);
int maildir_commit_message (CONTEXT *, MESSAGE *, HEADER *);
-int mh_commit_message (CONTEXT *, MESSAGE *, HEADER *);
+int mh_commit_message (CONTEXT *, MESSAGE *);
FILE *maildir_open_find_message (const char *, const char *);
--
2.8.3