diff options
author | Johan van Selst <johans@FreeBSD.org> | 2011-07-25 18:54:26 +0000 |
---|---|---|
committer | Johan van Selst <johans@FreeBSD.org> | 2011-07-25 18:54:26 +0000 |
commit | 40a3b0ef5ff3ee0938d700db2c51c300243c5e67 (patch) | |
tree | 8fc0794111b361cace074fd6ebf5d27c38a03307 /mail/emil/files/patch-main.c | |
parent | 3bd5e9159fb6e65380312b809f12a8c98ed6e5d3 (diff) |
Notes
Diffstat (limited to 'mail/emil/files/patch-main.c')
-rw-r--r-- | mail/emil/files/patch-main.c | 54 |
1 files changed, 44 insertions, 10 deletions
diff --git a/mail/emil/files/patch-main.c b/mail/emil/files/patch-main.c index b215196776ab..f7e0667cc0c2 100644 --- a/mail/emil/files/patch-main.c +++ b/mail/emil/files/patch-main.c @@ -1,22 +1,56 @@ -$FreeBSD$ - ---- main.c.orig Thu Mar 28 20:57:50 2002 -+++ main.c Thu Mar 28 20:58:31 2002 -@@ -69,7 +69,7 @@ +--- main.c.orig 1996-06-04 15:36:58.000000000 +0200 ++++ main.c 2011-07-25 20:32:45.000000000 +0200 +@@ -69,7 +69,7 @@ int spawn_mailer = 0; int pseudo_route = 0; int in_fd = 0; -FILE * out_fd = stdout; -+FILE * out_fd; ++FILE * out_fd = NULL; FILE * char_fd = NULL; FILE * conf_fd = NULL; off_t pz; -@@ -83,7 +83,7 @@ - int no_run = FALSE; +@@ -84,6 +84,8 @@ int main(int argc, char *argv[]) char *cmailer = NULL; char *member = NULL; -- -+ out_fd = stdout; + ++ out_fd = stdout; ++ #ifdef HAVE_GETPAGESIZE pz = (off_t) getpagesize(); #elif defined(hpux) || defined(_AUX_SOURCE) +@@ -177,7 +179,7 @@ int main(int argc, char *argv[]) + sprintf(ebuf,"Invalid parameter to -f: %s",optarg); + #ifdef DEBUG + if (edebug) +- fprintf(stderr, ebuf); ++ fprintf(stderr, "%s", ebuf); + #endif + logger(LOG_WARNING,ebuf); + } +@@ -303,7 +305,7 @@ int main(int argc, char *argv[]) + sprintf(ebuf,"Invalid flag: -%c",c); + #ifdef DEBUG + if (edebug) +- fprintf(stderr, ebuf); ++ fprintf(stderr, "%s", ebuf); + #endif + logger(LOG_WARNING,ebuf); + } +@@ -359,7 +361,7 @@ int main(int argc, char *argv[]) + sprintf(ebuf, "Invalid mailer specification %s", optarg); + #ifdef DEBUG + if (edebug) +- fprintf(stderr, ebuf); ++ fprintf(stderr, "%s", ebuf); + #endif + logger(LOG_ERR, ebuf); + fprintf(stderr, "Emil: %s\n", ebuf); +@@ -448,7 +450,7 @@ int main(int argc, char *argv[]) + ); + #ifdef DEBUG + if (edebug) +- fprintf(stderr, ebuf); ++ fprintf(stderr, "%s", ebuf); + #endif + logger(LOG_DEBUG,ebuf); + if (source == NULL) |