diff options
author | Josh Triplett <josh@freedesktop.org> | 2006-11-20 23:25:41 -0800 |
---|---|---|
committer | Josh Triplett <josh@freedesktop.org> | 2006-11-20 23:28:03 -0800 |
commit | d6abe93b06c421b78e92d76ceb5ca181e3adff31 (patch) | |
tree | 60d6e94cc49d4f376be3632eb8e5a4668113f5cc /src/xcbint.h | |
parent | 4a928de402a6e69886921fe428bbffb909c6405e (diff) |
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.
Diffstat (limited to 'src/xcbint.h')
-rw-r--r-- | src/xcbint.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xcbint.h b/src/xcbint.h index 93bc89b..a8e167c 100644 --- a/src/xcbint.h +++ b/src/xcbint.h @@ -187,7 +187,7 @@ int _xcb_conn_wait(xcb_connection_t *c, pthread_cond_t *cond, struct iovec **vec /* xcb_auth.c */ -int _xcb_get_auth_info(int fd, xcb_auth_info_t *info); +int _xcb_get_auth_info(int fd, xcb_auth_info_t *info, int display); #ifdef GCC_HAS_VISIBILITY #pragma GCC visibility pop |