Minor fixes.
Showing
1 changed file
with
3 additions
and
3 deletions
... | @@ -86,7 +86,7 @@ main (int argc, char **argv) | ... | @@ -86,7 +86,7 @@ main (int argc, char **argv) |
86 | 86 | ||
87 | mailbox_messages_count (mbox, &total); | 87 | mailbox_messages_count (mbox, &total); |
88 | mailbox_get_url (mbox, &url); | 88 | mailbox_get_url (mbox, &url); |
89 | mhdir = url_to_string (url); | 89 | mhdir = (char*) url_to_string (url); |
90 | if (strncmp (mhdir, "mh:", 3) == 0) | 90 | if (strncmp (mhdir, "mh:", 3) == 0) |
91 | mhdir += 3; | 91 | mhdir += 3; |
92 | 92 | ||
... | @@ -113,14 +113,14 @@ main (int argc, char **argv) | ... | @@ -113,14 +113,14 @@ main (int argc, char **argv) |
113 | 113 | ||
114 | mailbox_get_message (mbox, total, &msg); | 114 | mailbox_get_message (mbox, total, &msg); |
115 | mh_message_number (msg, &num); | 115 | mh_message_number (msg, &num); |
116 | printf ("%s/%lu\n", mhdir, num + 1); | 116 | printf ("%s/%lu\n", mhdir, (unsigned long)(num + 1)); |
117 | exit (0); | 117 | exit (0); |
118 | } | 118 | } |
119 | 119 | ||
120 | /* Mhpath expands and sorts the message list `msgs' and | 120 | /* Mhpath expands and sorts the message list `msgs' and |
121 | writes the full pathnames of the messages to the standard | 121 | writes the full pathnames of the messages to the standard |
122 | output separated by newlines. */ | 122 | output separated by newlines. */ |
123 | mh_msgset_parse (mbox, &msgset, argc - index, argv + index); | 123 | mh_msgset_parse (mbox, &msgset, argc - index, argv + index, "cur"); |
124 | status = mh_iterate (mbox, &msgset, mhpath, mhdir); | 124 | status = mh_iterate (mbox, &msgset, mhpath, mhdir); |
125 | mailbox_close (mbox); | 125 | mailbox_close (mbox); |
126 | mailbox_destroy (&mbox); | 126 | mailbox_destroy (&mbox); | ... | ... |
-
Please register or sign in to post a comment