Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-10-23 20:00:18 +0400
committerFelix Fietkau <nbd@openwrt.org>2012-10-23 20:00:20 +0400
commit15ce77677281a91b7a26b693a129a92997d3d6bc (patch)
tree3726432406d56ddc81b3dd25e2cd69072deb052a /examples
parent6e7e8a1a910ec00511acc7c98653f57613ec5d0b (diff)
ustream-example: fix logic inversion
Diffstat (limited to 'examples')
-rw-r--r--examples/ustream-example.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ustream-example.c b/examples/ustream-example.c
index 00c7122..68611c6 100644
--- 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);
}