aboutsummaryrefslogtreecommitdiffstats
path: root/src/comproot.h
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com> 2021-01-03 04:58:47 -0500
committerMax Rees <maxcrees@me.com> 2021-01-03 04:58:47 -0500
commit53af8b630883d3e681a7de1048fe601609a2d9dc (patch)
tree01eec515d1cefb0c9248b021a7f19006614c081a /src/comproot.h
parent7b8a2834427936891db1f02e13067bcfda5a17d3 (diff)
comproot: make HANDLER_END a little more hygienic
Diffstat (limited to 'src/comproot.h')
-rw-r--r--src/comproot.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comproot.h b/src/comproot.h
index 3445c75..eca8cae 100644
--- a/src/comproot.h
+++ b/src/comproot.h
@@ -49,7 +49,7 @@ typedef void (*handler_func)(HANDLER_ARGS);
#define HANDLER_ID HANDLER_REQ->id
#define HANDLER_PID HANDLER_REQ->pid
#define HANDLER_ARG(i) HANDLER_REQ->data.args[i]
-#define HANDLER_END \
+#define HANDLER_END(rc) \
do { \
HANDLER_RESP->val = rc; \
HANDLER_RESP->error = rc ? -errno : 0; \