projects
/
free-sw
/
xcb
/
libxcb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add some output informations to configure script
[free-sw/xcb/libxcb]
/
src
/
xcb_auth.c
diff --git
a/src/xcb_auth.c
b/src/xcb_auth.c
index
4842d1d
..
ffc0515
100644
(file)
--- a/
src/xcb_auth.c
+++ b/
src/xcb_auth.c
@@
-192,8
+192,8
@@
static int compute_auth(xcb_auth_info_t *info, Xauth *authptr, struct sockaddr *
/* XDM-AUTHORIZATION-1 does not handle IPv6 correctly. Do the
same thing Xlib does: use all zeroes for the 4-byte address
and 2-byte port number. */
/* XDM-AUTHORIZATION-1 does not handle IPv6 correctly. Do the
same thing Xlib does: use all zeroes for the 4-byte address
and 2-byte port number. */
-
long
fakeaddr = 0;
-
shor
t fakeport = 0;
+
uint32_t
fakeaddr = 0;
+
uint16_
t fakeport = 0;
APPEND(info->data, j, fakeaddr);
APPEND(info->data, j, fakeport);
}
APPEND(info->data, j, fakeaddr);
APPEND(info->data, j, fakeport);
}
@@
-201,8
+201,8
@@
static int compute_auth(xcb_auth_info_t *info, Xauth *authptr, struct sockaddr *
break;
case AF_UNIX:
/*block*/ {
break;
case AF_UNIX:
/*block*/ {
-
long
fakeaddr = htonl(0xffffffff - next_nonce());
-
shor
t fakeport = htons(getpid());
+
uint32_t
fakeaddr = htonl(0xffffffff - next_nonce());
+
uint16_
t fakeport = htons(getpid());
APPEND(info->data, j, fakeaddr);
APPEND(info->data, j, fakeport);
}
APPEND(info->data, j, fakeaddr);
APPEND(info->data, j, fakeport);
}
@@
-212,9
+212,7
@@
static int compute_auth(xcb_auth_info_t *info, Xauth *authptr, struct sockaddr *
return 0; /* do not know how to build this */
}
{
return 0; /* do not know how to build this */
}
{
- long now;
- time(&now);
- now = htonl(now);
+ uint32_t now = htonl(time(0));
APPEND(info->data, j, now);
}
assert(j <= 192 / 8);
APPEND(info->data, j, now);
}
assert(j <= 192 / 8);