summaryrefslogtreecommitdiff
path: root/lib9p/srv.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-04-08 20:28:19 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-04-12 08:34:59 -0600
commit7e9257357643854e17981cf4ff913106990f5fb5 (patch)
tree76558280a00ebbe0399a6658120356bd194502b2 /lib9p/srv.c
parenta1d87b8743845d6f0aa676536102320c1ad18386 (diff)
lib9p: idl: Normalize on the field names "errstr" and "errnum"
Diffstat (limited to 'lib9p/srv.c')
-rw-r--r--lib9p/srv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib9p/srv.c b/lib9p/srv.c
index 43994e1..df53940 100644
--- a/lib9p/srv.c
+++ b/lib9p/srv.c
@@ -194,10 +194,10 @@ static void respond_error(struct _lib9p_srv_req *req) {
ssize_t r;
struct lib9p_msg_Rerror host = {
.tag = req->tag,
- .ename = lib9p_strn(req->ctx.basectx.err_msg,
+ .errstr = lib9p_strn(req->ctx.basectx.err_msg,
CONFIG_9P_MAX_ERR_SIZE),
#if CONFIG_9P_ENABLE_9P2000_u
- .errno = req->ctx.basectx.err_num,
+ .errnum = req->ctx.basectx.err_num,
#endif
};
@@ -205,8 +205,8 @@ static void respond_error(struct _lib9p_srv_req *req) {
/* Truncate the error-string if necessary to avoid needing to
* return LINUX_ERANGE. */
- if (((uint32_t)host.ename.len) + sess->rerror_overhead > sess->max_msg_size)
- host.ename.len = sess->max_msg_size - sess->rerror_overhead;
+ if (((uint32_t)host.errstr.len) + sess->rerror_overhead > sess->max_msg_size)
+ host.errstr.len = sess->max_msg_size - sess->rerror_overhead;
struct lib9p_Rmsg_send_buf net;