socket-util: add one missing paren
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 13 Apr 2023 06:20:49 +0000 (15:20 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 14 Apr 2023 04:49:35 +0000 (13:49 +0900)
Follow-up for b6256af75e0609e451198ed90c293efd50827ab3.

src/basic/socket-util.h

index 7d504319a827cd1dcef7749bb632898e665f5510..00c2998adb4b74093dc2ec828bbd9790d454b846 100644 (file)
@@ -183,7 +183,7 @@ int flush_accept(int fd);
  * riscv32. */
 #define CMSG_TYPED_DATA(cmsg, type)                                     \
         ({                                                              \
-                struct cmsghdr *_cmsg = cmsg;                           \
+                struct cmsghdr *_cmsg = (cmsg);                         \
                 assert_cc(__alignof__(type) <= __alignof__(struct cmsghdr)); \
                 _cmsg ? CAST_ALIGN_PTR(type, CMSG_DATA(_cmsg)) : (type*) NULL; \
         })