aboutsummaryrefslogtreecommitdiff
path: root/libX11/src/xcb_disp.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-08-24 19:36:08 +0000
committermarha <marha@users.sourceforge.net>2010-08-24 19:36:08 +0000
commitf1e55ffbe94408dc7aee8a9a5fbb45fdd72afe9b (patch)
tree8919acc34c9fd1fb0ecb508257d4586e91b97582 /libX11/src/xcb_disp.c
parenta219a0434f082a1d1faca472c14ba8c8e6d0fbc7 (diff)
parentc5e0555ef58f02918a9803cb910e2cc523260d5d (diff)
downloadvcxsrv-f1e55ffbe94408dc7aee8a9a5fbb45fdd72afe9b.tar.gz
vcxsrv-f1e55ffbe94408dc7aee8a9a5fbb45fdd72afe9b.tar.bz2
vcxsrv-f1e55ffbe94408dc7aee8a9a5fbb45fdd72afe9b.zip
svn merge ^/branches/released .
Diffstat (limited to 'libX11/src/xcb_disp.c')
-rw-r--r--libX11/src/xcb_disp.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/libX11/src/xcb_disp.c b/libX11/src/xcb_disp.c
index 2def9b014..60d186a5e 100644
--- a/libX11/src/xcb_disp.c
+++ b/libX11/src/xcb_disp.c
@@ -54,11 +54,10 @@ void XSetAuthorization(char *name, int namelen, char *data, int datalen)
_XUnlockMutex(_Xglobal_lock);
}
-int _XConnectXCB(Display *dpy, _Xconst char *display, char **fullnamep, int *screenp)
+int _XConnectXCB(Display *dpy, _Xconst char *display, int *screenp)
{
char *host;
int n = 0;
- int len;
xcb_connection_t *c;
dpy->fd = -1;
@@ -69,20 +68,7 @@ int _XConnectXCB(Display *dpy, _Xconst char *display, char **fullnamep, int *scr
if(!xcb_parse_display(display, &host, &n, screenp))
return 0;
-
- len = strlen(host) + (1 + 20 + 1 + 20 + 1);
- *fullnamep = Xmalloc(len);
- if (!*fullnamep) {
- free(host);
- return 0;
- }
-
-#ifdef HAVE_LAUNCHD
- if(strncmp(host, "/tmp/launch", 11) == 0)
- snprintf(*fullnamep, len, "%s:%d", host, n);
- else
-#endif
- snprintf(*fullnamep, len, "%s:%d.%d", host, n, *screenp);
+ /* host and n are unused, but xcb_parse_display requires them */
free(host);
_XLockMutex(_Xglobal_lock);