diff options
author | cinap_lenrek <cinap_lenrek@localhost> | 2011-05-01 07:41:21 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@localhost> | 2011-05-01 07:41:21 +0000 |
commit | 09a848d825a600a2fe67ce37192a11fbf9f3685f (patch) | |
tree | 6525a9a99806528af28a16ef4358360fe53c8b56 /sys/src/cmd/cwfs/auth.c | |
parent | db7290d79e86abfdab490e793073a4936c8e1e5f (diff) |
cwfs: cleanup
Diffstat (limited to 'sys/src/cmd/cwfs/auth.c')
-rw-r--r-- | sys/src/cmd/cwfs/auth.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/src/cmd/cwfs/auth.c b/sys/src/cmd/cwfs/auth.c index 1e7765918..f8a433700 100644 --- a/sys/src/cmd/cwfs/auth.c +++ b/sys/src/cmd/cwfs/auth.c @@ -119,11 +119,13 @@ authfree(void *auth) } int -authread(Chan *chan, File *file, uchar *data, int count) +authread(File *file, uchar *data, int count) { AuthInfo *ai; AuthRpc *rpc; + Chan *chan; + chan = file->cp; if((rpc = file->auth) == nil){ snprint(chan->err, sizeof(chan->err), "not an auth fid"); @@ -162,10 +164,12 @@ authread(Chan *chan, File *file, uchar *data, int count) } int -authwrite(Chan *chan, File *file, uchar *data, int count) +authwrite(File *file, uchar *data, int count) { AuthRpc *rpc; + Chan *chan; + chan = file->cp; if((rpc = file->auth) == nil){ snprint(chan->err, sizeof(chan->err), "not an auth fid"); |