X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fdropsbr.c;h=3c3e105264f2bdf50c7a72fa9b1a3d5e897395f6;hp=f093c2fd4824c53b5200189683fa6e66ccf32eb8;hb=32b2354dbaf4bf934936eb5b102a4a3d2fdd209a;hpb=ef1216bc36bd48ceb7549ae76aa7c26e3be4d9e4 diff --git a/uip/dropsbr.c b/uip/dropsbr.c index f093c2f..3c3e105 100644 --- a/uip/dropsbr.c +++ b/uip/dropsbr.c @@ -12,11 +12,7 @@ #include #include #include - -#ifdef HAVE_ERRNO_H -# include -#endif - +#include #include @@ -25,7 +21,7 @@ ** a file or maildrop. */ int -mbx_open(char *file, uid_t uid, gid_t gid, mode_t mode) +mbox_open(char *file, uid_t uid, gid_t gid, mode_t mode) { int i, count, fd; struct stat st; @@ -102,7 +98,7 @@ mbx_open(char *file, uid_t uid, gid_t gid, mode_t mode) ** Append message to end of mbox. */ int -mbx_copy(int to, int from) +mbox_copy(int to, int from) { int i; char buffer[BUFSIZ]; @@ -173,7 +169,7 @@ mbx_copy(int to, int from) if (i != 0 && strncmp(buffer, "From ", 5) == 0) { write(to, ">", 1); } - if (write(to, buffer, strlen(buffer)) != strlen(buffer)) { + if (write(to, buffer, strlen(buffer)) != (int)strlen(buffer)) { fclose(fp); return NOTOK; } @@ -194,7 +190,7 @@ mbx_copy(int to, int from) ** Close and unlock file/maildrop. */ int -mbx_close(char *mailbox, int md) +mbox_close(char *mailbox, int md) { if (lkclose(md, mailbox) == 0) return OK;