diff options
author | rsc <devnull@localhost> | 2006-04-01 19:24:03 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-04-01 19:24:03 +0000 |
commit | cbeb0b26e4c7caa8d1b47de791a7418dc20a4567 (patch) | |
tree | e0f7e445de1aa22a42ef873dc4b1118a8105ae93 /src/cmd/upas/vf | |
parent | 226d80b8213821af0cbf092d1507c52b504fd368 (diff) | |
download | plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.gz plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.bz2 plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.zip |
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
Diffstat (limited to 'src/cmd/upas/vf')
-rw-r--r-- | src/cmd/upas/vf/vf.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/cmd/upas/vf/vf.c b/src/cmd/upas/vf/vf.c index bc8a7960..4a8846b2 100644 --- a/src/cmd/upas/vf/vf.c +++ b/src/cmd/upas/vf/vf.c @@ -41,18 +41,18 @@ static void writeheader(Part *p, int); enum { - // encodings + /* encodings */ Enone= 0, Ebase64, Equoted, - // disposition possibilities + /* disposition possibilities */ Dnone= 0, Dinline, Dfile, Dignore, - PAD64= '=', + PAD64= '=' }; /* @@ -98,7 +98,7 @@ Hdef hdefs[] = { "content-type:", ctype, }, { "content-transfer-encoding:", cencoding, }, { "content-disposition:", cdisposition, }, - { 0, }, + { 0, } }; /* @@ -926,7 +926,7 @@ struct Charset { { { "us-ascii", 8, 1, }, { "utf-8", 5, 0, }, - { "iso-8859-1", 10, 1, }, + { "iso-8859-1", 10, 1, } }; /* @@ -951,7 +951,7 @@ tokenconvert(String *t) e = token+len-2; token += 2; - // bail if we don't understand the character set + /* bail if we don't understand the character set */ for(i = 0; i < nelem(charsets); i++) if(cistrncmp(charsets[i].name, token, charsets[i].len) == 0) if(token[charsets[i].len] == '?'){ @@ -961,11 +961,11 @@ tokenconvert(String *t) if(i >= nelem(charsets)) goto err; - // bail if it doesn't fit + /* bail if it doesn't fit */ if(strlen(token) > sizeof(decoded)-1) goto err; - // bail if we don't understand the encoding + /* bail if we don't understand the encoding */ if(cistrncmp(token, "b?", 2) == 0){ token += 2; len = dec64((uchar*)decoded, sizeof(decoded), token, e-token); @@ -1002,7 +1002,7 @@ err: enum { Self= 1, - Hex= 2, + Hex= 2 }; uchar tableqp[256]; @@ -1084,7 +1084,7 @@ decquoted(char *out, char *in, char *e) if(in < e) p = decquotedline(p, in, e-1); - // make sure we end with a new line + /* make sure we end with a new line */ if(*(p-1) != '\n'){ *p++ = '\n'; *p = 0; |