Commit e92ab7d8 e92ab7d8e59cea3a5ccf653b955fbe65b7a86871 by Sergey Poznyakoff

Minor fixes.

1 parent a14aceea
...@@ -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);
......