[PATCH libxxtrans 1/2] Remove unused static inlines
Matthieu Herrb
matthieu at herrb.eu
Mon Nov 11 22:24:56 PST 2013
On Mon, Nov 11, 2013 at 11:22:55PM +0100, Mark Kettenis wrote:
> From: Mark Kettenis <kettenis at openbsd.org>
>
> Signed-off-by: Mark Kettenis <kettenis at openbsd.org>
Reviewed-by: Matthieu Herrb <matthieu at herrb.eu>
> ---
> Xtranssock.c | 16 ----------------
> 1 file changed, 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
> --
> 1.8.4.2
>
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
--
Matthieu Herrb
More information about the xorg-devel
mailing list