summaryrefslogtreecommitdiff
path: root/lib9p/include
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-03-14 18:16:52 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-03-22 16:22:29 -0600
commit83b1f50d4d5d5fdba71e27a833e550f06262cdb5 (patch)
tree37817386b5c144d8da0aa86eb6f6dddac39c5918 /lib9p/include
parentd2ef29ecf234aceb81d300f276d1f5704617d94d (diff)
lib9p: Declare lib9p_errorf as printf-like, fix found errors
Diffstat (limited to 'lib9p/include')
-rw-r--r--lib9p/include/lib9p/9p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib9p/include/lib9p/9p.h b/lib9p/include/lib9p/9p.h
index 7724fc8..44b5410 100644
--- a/lib9p/include/lib9p/9p.h
+++ b/lib9p/include/lib9p/9p.h
@@ -58,7 +58,7 @@ bool lib9p_ctx_has_error(struct lib9p_ctx *ctx);
/** Write an static error into ctx, return -1. */
int lib9p_error(struct lib9p_ctx *ctx, uint32_t linux_errno, char const *msg);
/** Write a printf-style error into ctx, return -1. */
-int lib9p_errorf(struct lib9p_ctx *ctx, uint32_t linux_errno, char const *fmt, ...);
+int lib9p_errorf(struct lib9p_ctx *ctx, uint32_t linux_errno, char const *fmt, ...) [[gnu::format(printf, 3, 4)]];
/* main T-message functions ***************************************************/