Commit 5051c609 5051c6097771457aa5f77d4e3ee3ac4ffd4791bf by Sergey Poznyakoff

Minor bugfixes.

1 parent 0e2ce333
...@@ -253,14 +253,14 @@ main (int argc, char **argv) ...@@ -253,14 +253,14 @@ main (int argc, char **argv)
253 if ((rc = mu_mailbox_get_message (input, n, &imsg)) != 0) 253 if ((rc = mu_mailbox_get_message (input, n, &imsg)) != 0)
254 { 254 {
255 mh_error (_("%d: cannot get message: %s"), 255 mh_error (_("%d: cannot get message: %s"),
256 n, mu_strerror (errno)); 256 n, mu_strerror (rc));
257 continue; 257 continue;
258 } 258 }
259 259
260 if ((rc = mu_mailbox_append_message (output, imsg)) != 0) 260 if ((rc = mu_mailbox_append_message (output, imsg)) != 0)
261 { 261 {
262 mh_error (_("%d: error appending message: %s"), 262 mh_error (_("%d: error appending message: %s"),
263 n, mu_strerror (errno)); 263 n, mu_strerror (rc));
264 continue; 264 continue;
265 } 265 }
266 266
......
...@@ -156,7 +156,7 @@ action_list (void *item, void *data) ...@@ -156,7 +156,7 @@ action_list (void *item, void *data)
156 } 156 }
157 157
158 static int 158 static int
159 list_private (char *name, char *value, char *data) 159 list_private (char *name, char *value, void *data)
160 { 160 {
161 int nlen; 161 int nlen;
162 162
...@@ -174,7 +174,7 @@ list_private (char *name, char *value, char *data) ...@@ -174,7 +174,7 @@ list_private (char *name, char *value, char *data)
174 } 174 }
175 175
176 static int 176 static int
177 list_public (char *name, char *value, char *data) 177 list_public (char *name, char *value, void *data)
178 { 178 {
179 printf ("%s: %s\n", name, value); 179 printf ("%s: %s\n", name, value);
180 return 0; 180 return 0;
......