diff options
author | Mark Kettenis <kettenis@openbsd.org> | 2013-11-11 23:16:15 +0100 |
---|---|---|
committer | Mark Kettenis <kettenis@openbsd.org> | 2013-11-21 11:33:37 +0100 |
commit | 81662d2018a35a161a5e9707563ee7f503f8d3e0 (patch) | |
tree | dd24b1251391db2efe9437c0f0e16e94a4b66aba | |
parent | 0153d1670e4a1883e1bb6dd971435d6268eac5ba (diff) |
Remove unused static inlines
Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
Reviewed-by: Matthieu Herrb <matthieu@herrb.eu>
-rw-r--r-- | Xtranssock.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/Xtranssock.c b/Xtranssock.c index c9d1033..0370119 100644 --- a/Xtranssock.c +++ b/Xtranssock.c @@ -2202,22 +2202,6 @@ struct fd_pass { int fd[MAX_FDS]; }; -static inline void init_msg_recv(struct msghdr *msg, struct iovec *iov, int niov, struct fd_pass *pass, int nfd) { - msg->msg_name = NULL; - msg->msg_namelen = 0; - msg->msg_iov = iov; - msg->msg_iovlen = niov; - msg->msg_control = pass; - msg->msg_controllen = sizeof (struct cmsghdr) + nfd * sizeof (int); -} - -static inline void init_msg_send(struct msghdr *msg, struct iovec *iov, int niov, struct fd_pass *pass, int nfd) { - init_msg_recv(msg, iov, niov, pass, nfd); - pass->cmsghdr.cmsg_len = msg->msg_controllen; - pass->cmsghdr.cmsg_level = SOL_SOCKET; - pass->cmsghdr.cmsg_type = SCM_RIGHTS; -} - #endif /* XTRANS_SEND_FDS */ static int |