summaryrefslogtreecommitdiff
path: root/lib9p/include
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-05 08:14:27 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-05 08:14:27 -0600
commitcc3a585e37cf58b61cbea599cc4de93cf713834b (patch)
tree8f73af6ff3922acdefeb7a8475e364f1945a48a3 /lib9p/include
parent4f7cf6b416ccede492ace64533ab35a9a289f463 (diff)
compiles
Diffstat (limited to 'lib9p/include')
-rw-r--r--lib9p/include/lib9p/srv.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib9p/include/lib9p/srv.h b/lib9p/include/lib9p/srv.h
index d2ada62..6a6fed0 100644
--- a/lib9p/include/lib9p/srv.h
+++ b/lib9p/include/lib9p/srv.h
@@ -16,14 +16,14 @@ struct lib9p_srv_reqctx {
static inline bool flush_requested(struct lib9p_srv_reqctx *ctx) {
assert(ctx);
- return cr_chan_can_write(&ctx->_flushch);
+ return cr_chan_can_send(&ctx->_flushch);
}
static inline int acknowledge_flush(struct lib9p_srv_reqctx *ctx) {
assert(ctx);
assert(cr_chan_can_send(&ctx->_flushch));
lib9p_error(ctx->base, LINUX_ECANCELED, "request canceled by flush");
- cr_chan_send(&ctx->_flushch, true);
+ cr_chan_send(&ctx->_flushch, (bool)true);
return -1;
}