summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-04-09 23:58:16 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-04-10 16:34:31 -0600
commit371d7f15f2f37f14ff6a074f46048105ddb9071b (patch)
tree432df647c2509125d26367062068457090ad599b
parentd52f9cacdfa88a21bcf4d3ea4c0468e7f312ce4c (diff)
lib9p: srv: No reason to have acknowledge_flush() return anything
-rw-r--r--lib9p/include/lib9p/srv.h2
-rw-r--r--lib9p/srv.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/lib9p/include/lib9p/srv.h b/lib9p/include/lib9p/srv.h
index ec47142..7ad1b19 100644
--- a/lib9p/include/lib9p/srv.h
+++ b/lib9p/include/lib9p/srv.h
@@ -33,7 +33,7 @@ struct lib9p_srv_ctx {
bool lib9p_srv_flush_requested(struct lib9p_srv_ctx *ctx);
-int lib9p_srv_acknowledge_flush(struct lib9p_srv_ctx *ctx);
+void lib9p_srv_acknowledge_flush(struct lib9p_srv_ctx *ctx);
/* interface definitions ******************************************************/
diff --git a/lib9p/srv.c b/lib9p/srv.c
index 60a1bb0..b3b9c4c 100644
--- a/lib9p/srv.c
+++ b/lib9p/srv.c
@@ -57,12 +57,11 @@ bool lib9p_srv_flush_requested(struct lib9p_srv_ctx *ctx) {
return _lib9p_srv_flushch_can_send(&ctx->_flushch);
}
-int lib9p_srv_acknowledge_flush(struct lib9p_srv_ctx *ctx) {
+void lib9p_srv_acknowledge_flush(struct lib9p_srv_ctx *ctx) {
assert(ctx);
assert(_lib9p_srv_flushch_can_send(&ctx->_flushch));
lib9p_error(&ctx->basectx, LINUX_ECANCELED, "request canceled by flush");
_lib9p_srv_flushch_send(&ctx->_flushch, true);
- return -1;
}
/* structs ********************************************************************/