From: Josh Triplett Date: Tue, 21 Nov 2006 07:25:41 +0000 (-0800) Subject: Refactor auth code to get display number from xcb_connect X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6abe93b06c421b78e92d76ceb5ca181e3adff31;hp=d6abe93b06c421b78e92d76ceb5ca181e3adff31;p=free-sw%2Fxcb%2Flibxcb Refactor auth code to get display number from xcb_connect Change xcb_connect to pass the display number to _xcb_get_auth_info, which passes it to get_authptr. This allows get_authptr to stop hacking the display number out of the sockaddrs of various address families, such as port - X_TCP_PORT, or the number after the last X in the UNIX socket path. This also removes a portability bug introduced during the IPv6 changes: relying on '\0'-termination of the UNIX socket path in a sockaddr_un. Commit by Jamey Sharp and Josh Triplett. ---