projects
/
project
/
libubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e7e8a1
)
ustream-example: fix logic inversion
author
Felix Fietkau
<nbd@openwrt.org>
Tue, 23 Oct 2012 16:00:18 +0000
(18:00 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Tue, 23 Oct 2012 16:00:20 +0000
(18:00 +0200)
examples/ustream-example.c
patch
|
blob
|
history
diff --git
a/examples/ustream-example.c
b/examples/ustream-example.c
index 00c71222ac102f9773d56863f8cb7014483c5d0a..68611c6fb0ad7ad2eaf944bf3f375cfa98ddb568 100644
(file)
--- a/
examples/ustream-example.c
+++ b/
examples/ustream-example.c
@@
-42,7
+42,7
@@
static void client_read_cb(struct ustream *s, int bytes)
cl->ctr += newline + 1 - str;
} while(1);
- if (s->w.data_bytes > 256 && ustream_read_blocked(s)) {
+ if (s->w.data_bytes > 256 &&
!
ustream_read_blocked(s)) {
fprintf(stderr, "Block read, bytes: %d\n", s->w.data_bytes);
ustream_set_read_blocked(s, true);
}