# HG changeset patch
# User Damien Riegel <[email protected]>
# Date 1464827851 14400
#      Wed Jun 01 20:37:31 2016 -0400
# Node ID c1df0f24917c001eadbfbf12b736f4c1aea70a5e
# Parent  cb69c738d8258dca86a2dcef45023d949ae46ad9
remove unused HEADER parameter in mh_commit_message

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.

diff -r cb69c738d825 -r c1df0f24917c mh.c
--- a/mh.c      Wed Jun 01 20:22:02 2016 -0400
+++ b/mh.c      Wed Jun 01 20:37:31 2016 -0400
@@ -1606,9 +1606,9 @@
   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 -r cb69c738d825 -r c1df0f24917c mx.c
--- a/mx.c      Wed Jun 01 20:22:02 2016 -0400
+++ b/mx.c      Wed Jun 01 20:37:31 2016 -0400
@@ -1374,7 +1374,7 @@
     
     case MUTT_MH:
     {
-      r = mh_commit_message (ctx, msg, NULL);
+      r = mh_commit_message (ctx, msg);
       break;
     }
   }
diff -r cb69c738d825 -r c1df0f24917c mx.h
--- a/mx.h      Wed Jun 01 20:22:02 2016 -0400
+++ b/mx.h      Wed Jun 01 20:37:31 2016 -0400
@@ -61,7 +61,7 @@
 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 *);
 

Reply via email to