summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2014-06-08 21:31:47 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2014-06-08 21:37:01 +0100
commit0f9d3aeadcfa071f193901a289144802124a4e2a (patch)
tree71e507805f1e48dda4a71021c19b091a9f7fcfd1 /src
parentbfd86064a821399920da2d5bacd4ba8ff974ab3f (diff)
Use strict C89 variable declaration positioning
Diffstat (limited to 'src')
-rw-r--r--src/src/deliver.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/src/deliver.c b/src/src/deliver.c
index 32cba9a91..d30b39402 100644
--- a/src/src/deliver.c
+++ b/src/src/deliver.c
@@ -6696,6 +6696,12 @@ while (addr_failed != NULL)
BOOL to_sender = strcmpic(sender_address, bounce_recipient) == 0;
int max = (bounce_return_size_limit/DELIVER_IN_BUFFER_SIZE + 1) *
DELIVER_IN_BUFFER_SIZE;
+#ifdef EXPERIMENTAL_DSN
+ uschar boundaryStr[64];
+ uschar *dsnlimitmsg;
+ uschar *dsnnotifyhdr;
+ int topt;
+#endif
DEBUG(D_deliver)
debug_printf("sending error message to: %s\n", bounce_recipient);
@@ -6751,7 +6757,6 @@ while (addr_failed != NULL)
#ifdef EXPERIMENTAL_DSN
/* generate boundary string and output MIME-Headers */
- uschar boundaryStr[64];
snprintf(boundaryStr, 63, "%l-eximdsn-%d", (long) time(NULL), rand());
fprintf(f,"Content-Type: multipart/report; report-type=delivery-status; boundary=%s\n", boundaryStr);
fprintf(f,"MIME-Version: 1.0\n");
@@ -7016,9 +7021,10 @@ wording. */
fprintf(f,"\n--%s\n", boundaryStr);
- uschar *dsnlimitmsg = US"X-Exim-DSN-Information: Due to administrative limits only headers are returned";
- uschar *dsnnotifyhdr = NULL;
- int topt = topt_add_return_path;
+ dsnlimitmsg = US"X-Exim-DSN-Information: Due to administrative limits only headers are returned";
+ dsnnotifyhdr = NULL;
+ topt = topt_add_return_path;
+
/* RET=HDRS? top priority */
if (dsn_ret == dsn_ret_hdrs)
topt |= topt_no_body;
@@ -7360,6 +7366,9 @@ else if (addr_defer != (address_item *)(+1))
uschar *wmf_text;
FILE *wmf = NULL;
FILE *f = fdopen(fd, "wb");
+#ifdef EXPERIMENTAL_DSN
+ uschar boundaryStr[64];
+#endif
if (warn_message_file != NULL)
{
@@ -7382,7 +7391,6 @@ else if (addr_defer != (address_item *)(+1))
#ifdef EXPERIMENTAL_DSN
/* generated boundary string and output MIME-Headers */
- uschar boundaryStr[64];
snprintf(boundaryStr, 63, "%l-eximdsn-%d", (long) time(NULL), rand());
fprintf(f,"Content-Type: multipart/report; report-type=delivery-status; boundary=%s\n", boundaryStr);
fprintf(f,"MIME-Version: 1.0\n");