[PATCH 3/8] Drop unnecessary casts

Rene Kita <[email protected]>
Newsgroups gmane.mail.mutt.devel
Message-ID <[email protected]>
---
 curs_lib.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/curs_lib.c b/curs_lib.c
index 5cc739ec..cfec5eb5 100644
--- a/curs_lib.c
+++ b/curs_lib.c
@@ -229,7 +229,7 @@ static int _get_field(const char *field, BUFFER *buffer, int complete,
 #endif
     mutt_window_clearline(MuttMessageWindow, 0);
     SETCOLOR(MT_COLOR_PROMPT);
-    addstr((char *)field); /* cast to get around bad prototypes */
+    addstr(field);
     NORMAL_COLOR;
     mutt_refresh();
     mutt_window_getyx(MuttMessageWindow, NULL, &x);
@@ -1073,7 +1073,7 @@ static int _enter_fname(const char *prompt, BUFFER *fname, int flags,
   event_t ch;
 
   SETCOLOR(MT_COLOR_PROMPT);
-  mutt_window_mvaddstr(MuttMessageWindow, 0, 0, (char *) prompt);
+  mutt_window_mvaddstr(MuttMessageWindow, 0, 0, prompt);
   addstr(_(" ('?' for list): "));
   NORMAL_COLOR;
   if (mutt_buffer_len(fname))
-- 
2.51.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.