Commit 8e5eec00 8e5eec0070d45dedc5c99ff51cc24af87b79e66f by Sergey Poznyakoff

Removed unneded typecasts.

1 parent 314ef986
......@@ -36,16 +36,16 @@ mail_followup (int argc, char **argv)
if (msgset_parse (argc, argv, &msglist))
return 1;
if (mailbox_get_message(mbox, cursor, &msg))
if (mailbox_get_message (mbox, cursor, &msg))
{
util_error("%d: can't get message", cursor);
util_error ("%d: can't get message", cursor);
msgset_free (msglist);
return 1;
}
/* Create subject value */
message_get_header(msg, &hdr);
if (header_aget_value(hdr, MU_HEADER_SUBJECT, &str) == 0)
message_get_header (msg, &hdr);
if (header_aget_value (hdr, MU_HEADER_SUBJECT, &str) == 0)
{
char *p = NULL;
......@@ -62,20 +62,19 @@ mail_followup (int argc, char **argv)
COMPOSE_SINGLE_LINE);
/* Add authors of the subsequent messages to the to list
(or should it be cc?)*/
(or should it be cc?) */
for (mp = msglist; mp; mp = mp->next)
compose_header_set (&env, MU_HEADER_TO,
util_get_sender(mp->msg_part[0], 0),
util_get_sender (mp->msg_part[0], 0),
COMPOSE_SINGLE_LINE);
msgset_free(msglist);
msgset_free (msglist);
fprintf (ofile, "To: %s\n",
compose_header_get (&env, MU_HEADER_TO, ""));
fprintf (ofile, "To: %s\n", compose_header_get (&env, MU_HEADER_TO, ""));
fprintf (ofile, "Subject: %s\n\n",
compose_header_get (&env, MU_HEADER_SUBJECT, ""));
status = mail_send0(&env, isupper(argv[0][0]));
status = mail_send0 (&env, isupper (argv[0][0]));
compose_destroy (&env);
return status;
}
......
......@@ -88,7 +88,7 @@ ml_readline_init ()
return;
#ifdef WITH_READLINE
rl_readline_name = (char *)"mail";
rl_readline_name = "mail";
rl_attempted_completion_function = (CPPFunction*)ml_command_completion;
rl_getc_function = ml_getc;
#endif
......
......@@ -52,8 +52,8 @@ mail_shell (int argc, char **argv)
argcv_string (argc-1, &argv[1], &buf);
argvec[0] = getenv("SHELL");
argvec[1] = (char *)"-c";
argvec[0] = getenv ("SHELL");
argvec[1] = "-c";
argvec[2] = buf;
argvec[3] = NULL;
......