From fa325e9b42b0bdfb48857d1958d9fb7ceac55151 Mon Sep 17 00:00:00 2001 From: Dan Cross Date: Fri, 10 Jan 2020 14:44:21 +0000 Subject: 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 --- src/libsunrpc/client.c | 4 ++-- src/libsunrpc/emalloc.c | 2 -- src/libsunrpc/mount3.c | 2 +- src/libsunrpc/nfs3.c | 4 ++-- src/libsunrpc/portmap.c | 2 +- src/libsunrpc/rpc.c | 3 +-- src/libsunrpc/server.c | 3 +-- 7 files changed, 8 insertions(+), 12 deletions(-) (limited to 'src/libsunrpc') diff --git a/src/libsunrpc/client.c b/src/libsunrpc/client.c index 692ab591..44ead7d1 100644 --- a/src/libsunrpc/client.c +++ b/src/libsunrpc/client.c @@ -243,7 +243,7 @@ if(cli->chatty) fprint(2, "resend %lux %lud %lud\n", o->xid, t, o->t); if(nout == 0) a[1].op = CHANNOP; break; - + case 2: /* tag = <-flushchan */ for(i=0; itimerchan); free(cli); } - + void sunclientflushrpc(SunClient *cli, ulong tag) { diff --git a/src/libsunrpc/emalloc.c b/src/libsunrpc/emalloc.c index 8a09eda7..ce617412 100644 --- a/src/libsunrpc/emalloc.c +++ b/src/libsunrpc/emalloc.c @@ -30,5 +30,3 @@ abort(); setrealloctag(v, getcallerpc(&n)); return v; } - - diff --git a/src/libsunrpc/mount3.c b/src/libsunrpc/mount3.c index d487c806..4da94896 100644 --- a/src/libsunrpc/mount3.c +++ b/src/libsunrpc/mount3.c @@ -709,7 +709,7 @@ static SunProc proc1[] = { (P)nfsmount3rexportpack, (P)nfsmount3rexportunpack, (S)nfsmount3rexportsize, (F)nfsmount3rexportprint, sizeof(NfsMount3RExport), }; -SunProg nfsmount3prog = +SunProg nfsmount3prog = { NfsMount3Program, NfsMount3Version, diff --git a/src/libsunrpc/nfs3.c b/src/libsunrpc/nfs3.c index 706d9c4f..8cf52db1 100644 --- a/src/libsunrpc/nfs3.c +++ b/src/libsunrpc/nfs3.c @@ -3377,7 +3377,7 @@ countEntryPlus(uchar *a, uchar *ea, uchar **pa, u32int *n) *pa = a; return 0; } - + int nfs3rreaddirplusunpack(uchar *a, uchar *ea, uchar **pa, Nfs3RReadDirPlus *x) { @@ -4042,7 +4042,7 @@ static SunProc proc[] = { (P)nfs3rcommitpack, (P)nfs3rcommitunpack, (S)nfs3rcommitsize, (F)nfs3rcommitprint, sizeof(Nfs3RCommit) }; -SunProg nfs3prog = +SunProg nfs3prog = { Nfs3Program, Nfs3Version, diff --git a/src/libsunrpc/portmap.c b/src/libsunrpc/portmap.c index 2bb40153..76a1dde1 100644 --- a/src/libsunrpc/portmap.c +++ b/src/libsunrpc/portmap.c @@ -489,7 +489,7 @@ static SunProc proc[] = { (P)portRCallitPack, (P)portRCallitUnpack, (S)portRCallitSize, (F)portRCallitPrint, sizeof(PortRCallit), }; -SunProg portprog = +SunProg portprog = { PortProgram, PortVersion, diff --git a/src/libsunrpc/rpc.c b/src/libsunrpc/rpc.c index 4ebe1ec8..a4b3f011 100644 --- a/src/libsunrpc/rpc.c +++ b/src/libsunrpc/rpc.c @@ -78,7 +78,7 @@ sunrpcpack(uchar *a, uchar *ea, uchar **pa, SunRpc *rpc) goto Err; break; } - + switch(rpc->status){ case SunSuccess: if(sunuint32pack(a, ea, &a, (x=MsgSuccess, &x)) < 0 @@ -538,4 +538,3 @@ Err: *pa = ea; return -1; } - diff --git a/src/libsunrpc/server.c b/src/libsunrpc/server.c index 6e024fca..b94b7643 100644 --- a/src/libsunrpc/server.c +++ b/src/libsunrpc/server.c @@ -194,7 +194,7 @@ sunrpcreplythread(void *v) while((m = recvp(srv->creply)) != nil){ /* could record in cache here? */ sendp(m->creply, m); - } + } } int @@ -286,4 +286,3 @@ sunmsgdrop(SunMsg *m) free(m); return 0; } - -- cgit v1.2.3