projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't call writev() anymore.
[mmh]
/
sbr
/
fmt_rfc2047.c
diff --git
a/sbr/fmt_rfc2047.c
b/sbr/fmt_rfc2047.c
index
5bc7850
..
dc123e5
100644
(file)
--- a/
sbr/fmt_rfc2047.c
+++ b/
sbr/fmt_rfc2047.c
@@
-38,7
+38,7
@@
static signed char index_64[128] = {
#define char64(c) (((unsigned char) (c) > 127) ? -1 : index_64[(unsigned char) (c)])
static int
#define char64(c) (((unsigned char) (c) > 127) ? -1 : index_64[(unsigned char) (c)])
static int
-unqp (unsigned char byte1, unsigned char byte2)
+unqp(unsigned char byte1, unsigned char byte2)
{
if (hexindex[byte1] == -1 || hexindex[byte2] == -1)
return -1;
{
if (hexindex[byte1] == -1 || hexindex[byte2] == -1)
return -1;
@@
-57,7
+57,7
@@
unqp (unsigned char byte1, unsigned char byte2)
#define ADDCHR(C) do { *q++ = (C); dstlen--; if (!dstlen) goto buffull; } while (0)
int
#define ADDCHR(C) do { *q++ = (C); dstlen--; if (!dstlen) goto buffull; } while (0)
int
-decode_rfc2047 (char *str, char *dst, size_t dstlen)
+decode_rfc2047(char *str, char *dst, size_t dstlen)
{
char *p, *q, *pp;
char *startofmime, *endofmime;
{
char *p, *q, *pp;
char *startofmime, *endofmime;
@@
-81,7
+81,7
@@
decode_rfc2047 (char *str, char *dst, size_t dstlen)
** Do a quick and dirty check for the '=' character.
** This should quickly eliminate many cases.
*/
** Do a quick and dirty check for the '=' character.
** This should quickly eliminate many cases.
*/
- if (!strchr (str, '='))
+ if (!strchr(str, '='))
return 0;
for (p = str, q = dst; *p; p++) {
return 0;
for (p = str, q = dst; *p; p++) {
@@
-222,7
+222,7
@@
decode_rfc2047 (char *str, char *dst, size_t dstlen)
if (quoted_printable) {
for (pp = startofmime; pp < endofmime; pp++) {
if (*pp == '=') {
if (quoted_printable) {
for (pp = startofmime; pp < endofmime; pp++) {
if (*pp == '=') {
- c = unqp (pp[1], pp[2]);
+ c = unqp(pp[1], pp[2]);
if (c == -1)
continue;
if (c != 0)
if (c == -1)
continue;
if (c != 0)
@@
-302,7
+302,7
@@
decode_rfc2047 (char *str, char *dst, size_t dstlen)
** which won't work if either
** encoding was stateful
*/
** which won't work if either
** encoding was stateful
*/
- iconv (cd, 0, 0, &saveq, &savedstlen);
+ iconv(cd, 0, 0, &saveq, &savedstlen);
if (!savedstlen)
break;
*saveq++ = '?';
if (!savedstlen)
break;
*saveq++ = '?';