diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-04-18 07:34:59 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-04-18 16:46:50 -0600 |
commit | 0c70b9a94982f4b75d3b450920e82e2390a153c1 (patch) | |
tree | 93a6fbbdf1dbc965f73f2eca18fa49f6f252b63a /libcr_ipc | |
parent | 957db32f46ca468043e1699817273a3e228c1ffb (diff) |
Tidy `do { ... } while (0)` macros
Diffstat (limited to 'libcr_ipc')
-rw-r--r-- | libcr_ipc/include/libcr_ipc/chan.h | 2 | ||||
-rw-r--r-- | libcr_ipc/include/libcr_ipc/rpc.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libcr_ipc/include/libcr_ipc/chan.h b/libcr_ipc/include/libcr_ipc/chan.h index 853b4ad..c57979a 100644 --- a/libcr_ipc/include/libcr_ipc/chan.h +++ b/libcr_ipc/include/libcr_ipc/chan.h @@ -48,7 +48,7 @@ #define cr_chan_send(CH, VAL) do { \ typeof((CH)->val_typ[0]) _val_lvalue = VAL; \ (void)cr_select_l(CR_SELECT_SEND(CH, &_val_lvalue)); \ -} while(0) +} while (0) /** * cr_chan_recv(ch) reads and returns a value from ch. diff --git a/libcr_ipc/include/libcr_ipc/rpc.h b/libcr_ipc/include/libcr_ipc/rpc.h index ecf48cf..bfa0a04 100644 --- a/libcr_ipc/include/libcr_ipc/rpc.h +++ b/libcr_ipc/include/libcr_ipc/rpc.h @@ -123,7 +123,7 @@ *((REQ)._resp) = RESP; \ cr_unpause(REQ._requester); \ cr_yield(); \ -} while(0) +} while (0) /* Background details *********************************************************/ |