X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/c5ef7e3f83bdcb3cc581d9650597c8f432b60d9a..7eecb2dcc4a30573ee644491a04e18d1acd7ec81:/uip/post.c diff --git a/uip/post.c b/uip/post.c index ff12d0c9..81bd7b4a 100644 --- a/uip/post.c +++ b/uip/post.c @@ -15,6 +15,8 @@ #include #include #include +#include "../sbr/m_mktemp.h" +#include "../sbr/message_id.h" #ifdef HAVE_SYS_TIME_H # include @@ -1847,7 +1849,7 @@ do_text (char *file, int fd) int retval, state; char buf[BUFSIZ]; - lseek (fd, (off_t) 0, SEEK_SET); + lseek(fd, 0, SEEK_SET); while ((state = read (fd, buf, sizeof(buf))) > 0) { if (rp_isbad (retval = sm_wtxt (buf, state))) @@ -1864,7 +1866,7 @@ do_text (char *file, int fd) case RP_NO: case RP_NDEL: die (NULL, "posting failed; %s", rp_string (retval)); - /* FALLTHRU */ + break; default: die (NULL, "unexpected response; %s", rp_string (retval));