[PATCH 4/4] Remove GetMyAddr
Adam Jackson
ajax at redhat.com
Wed May 18 19:20:43 UTC 2016
Again, pre-xcb libX11 was the only consumer.
Signed-off-by: Adam Jackson <ajax at redhat.com>
---
Xtrans.c | 21 ---------------------
Xtrans.h | 7 -------
2 files changed, 28 deletions(-)
diff --git a/Xtrans.c b/Xtrans.c
index cae3dad..46dc6b9 100644
--- a/Xtrans.c
+++ b/Xtrans.c
@@ -964,27 +964,6 @@ TRANS(IsLocal) (XtransConnInfo ciptr)
return (ciptr->family == AF_UNIX);
}
-
-int
-TRANS(GetMyAddr) (XtransConnInfo ciptr, int *familyp, int *addrlenp,
- Xtransaddr **addrp)
-
-{
- prmsg (2,"GetMyAddr(%d)\n", ciptr->fd);
-
- *familyp = ciptr->family;
- *addrlenp = ciptr->addrlen;
-
- if ((*addrp = malloc (ciptr->addrlen)) == NULL)
- {
- prmsg (1,"GetMyAddr: malloc failed\n");
- return -1;
- }
- memcpy(*addrp, ciptr->addr, ciptr->addrlen);
-
- return 0;
-}
-
int
TRANS(GetPeerAddr) (XtransConnInfo ciptr, int *familyp, int *addrlenp,
Xtransaddr **addrp)
diff --git a/Xtrans.h b/Xtrans.h
index 04fc8cb..6760632 100644
--- a/Xtrans.h
+++ b/Xtrans.h
@@ -348,13 +348,6 @@ int TRANS(IsLocal)(
XtransConnInfo /* ciptr */
);
-int TRANS(GetMyAddr)(
- XtransConnInfo, /* ciptr */
- int *, /* familyp */
- int *, /* addrlenp */
- Xtransaddr ** /* addrp */
-);
-
int TRANS(GetPeerAddr)(
XtransConnInfo, /* ciptr */
int *, /* familyp */
--
2.7.4
More information about the xorg-devel
mailing list