X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lib-src%2Fmovemail.c;h=f7a572cff391cfa0e1a1fc1145bd62a376908caa;hb=5a4005bd503927d2fe37973d8588587b43f36c83;hp=7a9dd77864f67bdc3c46e0c1fd0fc9b56363718b;hpb=762383636a99307282c2d93d26c35c046ec24da1;p=chise%2Fxemacs-chise.git.1 diff --git a/lib-src/movemail.c b/lib-src/movemail.c index 7a9dd77..f7a572c 100644 --- a/lib-src/movemail.c +++ b/lib-src/movemail.c @@ -440,7 +440,7 @@ main (int argc, char *argv[]) errno = saved_errno; pfatal_with_name (outname); } - if (nread < sizeof buf) + if (nread < (int) sizeof buf) break; } } @@ -741,14 +741,14 @@ popmail (char *user, char *outfile, char *password) server = pop_open (0, user, password, POP_NO_GETPASS); if (! server) { - error (pop_error, NULL, NULL); + error ("%s", pop_error, NULL); return (1); } VERBOSE(("stat'ing messages\n")); if (pop_stat (server, &nmsgs, &nbytes)) { - error (pop_error, NULL, NULL); + error ("%s", pop_error, NULL); return (1); } @@ -796,7 +796,7 @@ popmail (char *user, char *outfile, char *password) mbx_delimit_begin (mbf); if (pop_retr (server, i, mbx_write, mbf) != POP_RETRIEVED) { - error (Errmsg, NULL, NULL); + error ("%s", Errmsg, NULL); close (mbfi); return (1); } @@ -844,7 +844,7 @@ popmail (char *user, char *outfile, char *password) VERBOSE(("deleting message %d \n", i)); if (pop_delete (server, i)) { - error (pop_error, NULL, NULL); + error ("%s", pop_error, NULL); pop_close (server); return (1); } @@ -855,7 +855,7 @@ popmail (char *user, char *outfile, char *password) VERBOSE(("closing server \n")); if (pop_quit (server)) { - error (pop_error, NULL, NULL); + error ("%s", pop_error, NULL); return (1); }