diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-12-25 02:45:28 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-12-25 02:45:28 +0100 |
commit | 7ceff03db37d98e1dc634198fcee4206d8318499 (patch) | |
tree | f6cbd49954c203b70ce6f5bfefa5201c1d238167 /sys/src/cmd/vnc | |
parent | e7348f8ed26c8cc66cebfc3e59ff237b95db2a7b (diff) |
bio: remove useless Breadn() as it does the same as Bread()
Bread() always reads exactly nbytes of data if it can. only
when it reaches end of file or an error it will return less.
so the Breadn() function that was introduced has been removed.
sorry for the confusion.
Diffstat (limited to 'sys/src/cmd/vnc')
-rw-r--r-- | sys/src/cmd/vnc/proto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/vnc/proto.c b/sys/src/cmd/vnc/proto.c index c3cb05b39..277525034 100644 --- a/sys/src/cmd/vnc/proto.c +++ b/sys/src/cmd/vnc/proto.c @@ -98,7 +98,7 @@ vncrdcorect(Vnc *v) void vncrdbytes(Vnc *v, void *a, int n) { - if(Breadn(&v->in, a, n) != n){ + if(Bread(&v->in, a, n) != n){ if(verbose > 1) fprint(2, "hungup while reading\n"); vnchungup(v); |