mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
socket-util: don't reference field by macro parameter name
Let's avoid ambigituies here. (Interesting that the current users compiled at all, in fact)
This commit is contained in:
@@ -224,9 +224,9 @@ struct cmsghdr* cmsg_find(struct msghdr *mh, int level, int type, socklen_t leng
|
||||
strnlen(_sa->sun_path, sizeof(_sa->sun_path))+1); \
|
||||
})
|
||||
|
||||
#define SOCKADDR_LEN(sa) \
|
||||
#define SOCKADDR_LEN(saddr) \
|
||||
({ \
|
||||
const union sockaddr_union *__sa = &(sa); \
|
||||
const union sockaddr_union *__sa = &(saddr); \
|
||||
size_t _len; \
|
||||
switch (__sa->sa.sa_family) { \
|
||||
case AF_INET: \
|
||||
|
||||
Reference in New Issue
Block a user