aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/upas/nfs/decode.c
diff options
context:
space:
mode:
authorDan Cross <cross@gajendra.net>2020-01-10 14:44:21 +0000
committerDan Cross <cross@gajendra.net>2020-01-10 14:54:30 +0000
commitfa325e9b42b0bdfb48857d1958d9fb7ceac55151 (patch)
tree81d26256d152435135bcb1ae43121979a49f5f2b /src/cmd/upas/nfs/decode.c
parent77a0a5b5194d4441c86de097f2aae297cb75e2c2 (diff)
downloadplan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.tar.gz
plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.tar.bz2
plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.zip
Trivial changes: whitespace and modes.
Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net>
Diffstat (limited to 'src/cmd/upas/nfs/decode.c')
-rw-r--r--src/cmd/upas/nfs/decode.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/cmd/upas/nfs/decode.c b/src/cmd/upas/nfs/decode.c
index 3f8c4c68..0ad78ec4 100644
--- a/src/cmd/upas/nfs/decode.c
+++ b/src/cmd/upas/nfs/decode.c
@@ -25,7 +25,7 @@ _decqp(uchar *out, int lim, char *in, int n, int underscores)
{
char *p, *ep;
uchar *eout, *out0;
-
+
out0 = out;
eout = out+lim;
for(p=in, ep=in+n; p<ep && out<eout; ){
@@ -73,7 +73,7 @@ decode(int kind, char *s, int *len)
*len = l;
t[l] = 0;
return t;
-
+
case Base64:
l = strlen(s)+1;
t = emalloc(l);
@@ -127,7 +127,7 @@ static void
twriter(void *v)
{
Writeargs *w;
-
+
w = v;
write(w->fd, w->s, strlen(w->s));
close(w->fd);
@@ -216,13 +216,13 @@ unrfc2047(char *s)
int len;
Rune r;
Fmt fmt;
-
+
if(s == nil)
return nil;
if(strstr(s, "=?") == nil)
return s;
-
+
fmtstrinit(&fmt);
for(p=s; *p; ){
/* =?charset?e?text?= */
@@ -270,7 +270,7 @@ unrfc2047(char *s)
}
#ifdef TEST
-char *test[] =
+char *test[] =
{
"hello world",
"hello =?iso-8859-1?q?this is some text?=",
@@ -288,7 +288,7 @@ void
threadmain(int argc, char **argv)
{
int i;
-
+
for(i=0; i<nelem(test); i++)
print("%s\n\t%s\n", test[i], unrfc2047(estrdup(test[i])));
threadexitsall(0);