diff options
author | Adam Jackson <ajax@redhat.com> | 2016-05-18 12:58:31 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2016-05-19 09:28:24 -0400 |
commit | 3810e026323210df6ec6cf818f01832a63e9fbb9 (patch) | |
tree | 6c31ae6b7ec9a149eb4289ef2bf20bc752bc3e48 /Xtrans.c | |
parent | 75419e6b6d985ea8796f05d1acb5e154b065c9b9 (diff) |
Remove GetMyAddr
Again, pre-xcb libX11 was the only consumer.
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'Xtrans.c')
-rw-r--r-- | Xtrans.c | 21 |
1 files changed, 0 insertions, 21 deletions
@@ -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) |