git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Compiler masochism compliance.
[exim.git]
/
src
/
src
/
mime.c
diff --git
a/src/src/mime.c
b/src/src/mime.c
index ca560d447075f5b1014d2e6453beadcac8cccc70..8a3d03394be79849447148ebce01580c2b46f10d 100644
(file)
--- a/
src/src/mime.c
+++ b/
src/src/mime.c
@@
-1,4
+1,4
@@
-/* $Cambridge: exim/src/src/mime.c,v 1.1
6 2009/11/06 13:29:47
nm4 Exp $ */
+/* $Cambridge: exim/src/src/mime.c,v 1.1
9 2009/11/11 10:08:02
nm4 Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
/*************************************************
* Exim - an Internet mail transport agent *
@@
-23,9
+23,9
@@
uschar *mime_current_boundary = NULL;
give info on detected "problems" in MIME
encodings. Those are defined in mime.h. */
give info on detected "problems" in MIME
encodings. Those are defined in mime.h. */
-void mime_set_anomaly(int level, char *text) {
+void mime_set_anomaly(int level, c
onst c
har *text) {
mime_anomaly_level = level;
mime_anomaly_level = level;
- mime_anomaly_text = US text;
+ mime_anomaly_text =
C
US text;
}
}
@@
-106,7
+106,7
@@
static int mime_decode_base64(FILE* in, FILE* out, uschar* boundary)
opos = obuf;
opos = obuf;
- while (fgets(ibuf, MIME_MAX_LINE_LENGTH, in) != NULL)
+ while (
U
fgets(ibuf, MIME_MAX_LINE_LENGTH, in) != NULL)
{
if (boundary != NULL
&& Ustrncmp(ibuf, "--", 2) == 0
{
if (boundary != NULL
&& Ustrncmp(ibuf, "--", 2) == 0
@@
-153,7
+153,7
@@
static int mime_decode_base64(FILE* in, FILE* out, uschar* boundary)
return -1; /* error */
size += len;
/* copy incomplete last byte to start of obuf, where we continue */
return -1; /* error */
size += len;
/* copy incomplete last byte to start of obuf, where we continue */
- if (
bytestate & 3
!= 0)
+ if (
(bytestate & 3)
!= 0)
*obuf = *opos;
opos = obuf;
}
*obuf = *opos;
opos = obuf;
}
@@
-341,7
+341,7
@@
int mime_decode(uschar **listptr) {
clearerr(mime_stream);
fseek(mime_stream, f_pos, SEEK_SET);
clearerr(mime_stream);
fseek(mime_stream, f_pos, SEEK_SET);
- if (
size_counter < 0 || fclose(decode_file) !=
0)
+ if (
fclose(decode_file) != 0 || size_counter <
0)
return DEFER;
/* round up to the next KiB */
return DEFER;
/* round up to the next KiB */