X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/28ec221002d755d33c41fa4b5d9673eee0abef9d..4974d09cc659e2859fcf916ad020628c9695e2f8:/uip/sendsbr.c diff --git a/uip/sendsbr.c b/uip/sendsbr.c index 6f3c1262..3ada6bf0 100644 --- a/uip/sendsbr.c +++ b/uip/sendsbr.c @@ -23,7 +23,12 @@ #ifdef OAUTH_SUPPORT #include +#endif +#include "../sbr/m_maildir.h" +#include "../sbr/m_mktemp.h" +#include "../sbr/message_id.h" +#ifdef OAUTH_SUPPORT static int setup_oauth_params(char *[], int *, const char *, const char **); #endif /* OAUTH_SUPPORT */ @@ -532,7 +537,7 @@ alert (char *file, int out) if ((in = open (file, O_RDONLY)) == NOTOK) { admonish (file, "unable to re-open"); } else { - lseek (out, (off_t) 0, SEEK_END); + lseek(out, 0, SEEK_END); strncpy (buf, "\nMessage not delivered to anyone.\n", sizeof(buf)); if (write (out, buf, strlen (buf)) < 0) { advise (file, "write"); @@ -551,7 +556,7 @@ alert (char *file, int out) admonish (buf, "unable to rename %s to", file); } } - lseek (out, (off_t) 0, SEEK_SET); + lseek(out, 0, SEEK_SET); dup2 (out, fileno (stdin)); close (out); /* create subject for error notification */ @@ -709,7 +714,7 @@ annoaux (int fd) goto oops; } - lseek (fd, (off_t) 0, SEEK_SET); + lseek(fd, 0, SEEK_SET); if ((fp = fdopen (fd, "r")) == NULL) { if (debugsw) inform("unable to fdopen annotation list, continuing...");