diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-11-24 02:01:26 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-11-24 02:01:26 +0000 |
commit | 975c8f9d43d4026bf1d669b08646e9d29a9d02e4 (patch) | |
tree | fd8aed139ffef712ccbb2d392c13b3949b0192c5 /mimehead.c | |
parent | [w3m-dev 02530] segfault for bad cookie from local (diff) | |
download | w3m-975c8f9d43d4026bf1d669b08646e9d29a9d02e4.tar.gz w3m-975c8f9d43d4026bf1d669b08646e9d29a9d02e4.zip |
run make indent
Diffstat (limited to 'mimehead.c')
-rw-r--r-- | mimehead.c | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -1,4 +1,4 @@ -/* $Id: mimehead.c,v 1.3 2001/11/20 17:49:23 ukai Exp $ */ +/* $Id: mimehead.c,v 1.4 2001/11/24 02:01:26 ukai Exp $ */ /* * MIME header support by Akinori ITO */ @@ -19,7 +19,7 @@ #define BAD_BASE64 255 static -unsigned char + unsigned char c2e(char x) { if ('A' <= x && x <= 'Z') @@ -36,7 +36,7 @@ c2e(char x) } static -int + int ha2d(char x, char y) { int r = 0; @@ -129,7 +129,8 @@ decodeU(char **ww) if (i == 6) { w += 2; i = 2; - } else { + } + else { w++; i += 2; } @@ -204,7 +205,7 @@ decodeWord(char **ow) for (; *w != '?'; w++) { if (*w == '\0') goto convert_fail; - Strcat_char(charset,*w); + Strcat_char(charset, *w); } if (Strcasecmp_charp(charset, J_CHARSET) != 0) { /* NOT ISO-2022-JP encoding ... don't convert */ @@ -285,7 +286,8 @@ decodeMIME(char *orgstr) /* encoding */ -static char Base64Table[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; +static char Base64Table[] = + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; Str encodeB(char *a) |