Removed unneded typecasts.
Showing
3 changed files
with
15 additions
and
16 deletions
... | @@ -34,21 +34,21 @@ mail_followup (int argc, char **argv) | ... | @@ -34,21 +34,21 @@ mail_followup (int argc, char **argv) |
34 | 34 | ||
35 | compose_init (&env); | 35 | compose_init (&env); |
36 | if (msgset_parse (argc, argv, &msglist)) | 36 | if (msgset_parse (argc, argv, &msglist)) |
37 | return 1; | 37 | return 1; |
38 | 38 | ||
39 | if (mailbox_get_message(mbox, cursor, &msg)) | 39 | if (mailbox_get_message (mbox, cursor, &msg)) |
40 | { | 40 | { |
41 | util_error("%d: can't get message", cursor); | 41 | util_error ("%d: can't get message", cursor); |
42 | msgset_free (msglist); | 42 | msgset_free (msglist); |
43 | return 1; | 43 | return 1; |
44 | } | 44 | } |
45 | 45 | ||
46 | /* Create subject value */ | 46 | /* Create subject value */ |
47 | message_get_header(msg, &hdr); | 47 | message_get_header (msg, &hdr); |
48 | if (header_aget_value(hdr, MU_HEADER_SUBJECT, &str) == 0) | 48 | if (header_aget_value (hdr, MU_HEADER_SUBJECT, &str) == 0) |
49 | { | 49 | { |
50 | char *p = NULL; | 50 | char *p = NULL; |
51 | 51 | ||
52 | if (strncasecmp (str, "Re:", 3)) | 52 | if (strncasecmp (str, "Re:", 3)) |
53 | util_strcat (&p, "Re: "); | 53 | util_strcat (&p, "Re: "); |
54 | util_strcat (&p, str); | 54 | util_strcat (&p, str); |
... | @@ -62,20 +62,19 @@ mail_followup (int argc, char **argv) | ... | @@ -62,20 +62,19 @@ mail_followup (int argc, char **argv) |
62 | COMPOSE_SINGLE_LINE); | 62 | COMPOSE_SINGLE_LINE); |
63 | 63 | ||
64 | /* Add authors of the subsequent messages to the to list | 64 | /* Add authors of the subsequent messages to the to list |
65 | (or should it be cc?)*/ | 65 | (or should it be cc?) */ |
66 | for (mp = msglist; mp; mp = mp->next) | 66 | for (mp = msglist; mp; mp = mp->next) |
67 | compose_header_set (&env, MU_HEADER_TO, | 67 | compose_header_set (&env, MU_HEADER_TO, |
68 | util_get_sender(mp->msg_part[0], 0), | 68 | util_get_sender (mp->msg_part[0], 0), |
69 | COMPOSE_SINGLE_LINE); | 69 | COMPOSE_SINGLE_LINE); |
70 | 70 | ||
71 | msgset_free(msglist); | 71 | msgset_free (msglist); |
72 | 72 | ||
73 | fprintf (ofile, "To: %s\n", | 73 | fprintf (ofile, "To: %s\n", compose_header_get (&env, MU_HEADER_TO, "")); |
74 | compose_header_get (&env, MU_HEADER_TO, "")); | ||
75 | fprintf (ofile, "Subject: %s\n\n", | 74 | fprintf (ofile, "Subject: %s\n\n", |
76 | compose_header_get (&env, MU_HEADER_SUBJECT, "")); | 75 | compose_header_get (&env, MU_HEADER_SUBJECT, "")); |
77 | 76 | ||
78 | status = mail_send0(&env, isupper(argv[0][0])); | 77 | status = mail_send0 (&env, isupper (argv[0][0])); |
79 | compose_destroy (&env); | 78 | compose_destroy (&env); |
80 | return status; | 79 | return status; |
81 | } | 80 | } | ... | ... |
... | @@ -88,7 +88,7 @@ ml_readline_init () | ... | @@ -88,7 +88,7 @@ ml_readline_init () |
88 | return; | 88 | return; |
89 | 89 | ||
90 | #ifdef WITH_READLINE | 90 | #ifdef WITH_READLINE |
91 | rl_readline_name = (char *)"mail"; | 91 | rl_readline_name = "mail"; |
92 | rl_attempted_completion_function = (CPPFunction*)ml_command_completion; | 92 | rl_attempted_completion_function = (CPPFunction*)ml_command_completion; |
93 | rl_getc_function = ml_getc; | 93 | rl_getc_function = ml_getc; |
94 | #endif | 94 | #endif | ... | ... |
... | @@ -52,8 +52,8 @@ mail_shell (int argc, char **argv) | ... | @@ -52,8 +52,8 @@ mail_shell (int argc, char **argv) |
52 | 52 | ||
53 | argcv_string (argc-1, &argv[1], &buf); | 53 | argcv_string (argc-1, &argv[1], &buf); |
54 | 54 | ||
55 | argvec[0] = getenv("SHELL"); | 55 | argvec[0] = getenv ("SHELL"); |
56 | argvec[1] = (char *)"-c"; | 56 | argvec[1] = "-c"; |
57 | argvec[2] = buf; | 57 | argvec[2] = buf; |
58 | argvec[3] = NULL; | 58 | argvec[3] = NULL; |
59 | 59 | ... | ... |
-
Please register or sign in to post a comment