diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2009-05-03 12:59:13 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2009-05-03 12:59:13 +0000 |
commit | 42f51ca8ac9c0f97101006a1892350b599b579c3 (patch) | |
tree | dc092d06ac762491ec21f9e28e7b33edddb9c8e9 /lib/libX11/src/IntAtom.c | |
parent | df8d13bc873527069d0e7b2396638af253b48763 (diff) |
update to libX11 1.2.1
Diffstat (limited to 'lib/libX11/src/IntAtom.c')
-rw-r--r-- | lib/libX11/src/IntAtom.c | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/lib/libX11/src/IntAtom.c b/lib/libX11/src/IntAtom.c index 8161c7f73..d1e76b0ca 100644 --- a/lib/libX11/src/IntAtom.c +++ b/lib/libX11/src/IntAtom.c @@ -40,8 +40,7 @@ from The Open Group. #define REHASH(idx,rehash) ((idx + rehash) & (TABLESIZE-1)) void -_XFreeAtomTable(dpy) - Display *dpy; +_XFreeAtomTable(Display *dpy) { register Entry *table; register int i; @@ -116,13 +115,13 @@ nomatch: if (idx == firstidx) } void -_XUpdateAtomCache(dpy, name, atom, sig, idx, n) - Display *dpy; - const char *name; - Atom atom; - unsigned long sig; - int idx; - int n; +_XUpdateAtomCache( + Display *dpy, + const char *name, + Atom atom, + unsigned long sig, + int idx, + int n) { Entry e, oe; register char *s1; @@ -241,12 +240,12 @@ Bool _XIntAtomHandler( } Status -XInternAtoms (dpy, names, count, onlyIfExists, atoms_return) - Display *dpy; - char **names; - int count; - Bool onlyIfExists; - Atom *atoms_return; +XInternAtoms ( + Display *dpy, + char **names, + int count, + Bool onlyIfExists, + Atom *atoms_return) { int i, idx, n, tidx; unsigned long sig; @@ -286,7 +285,7 @@ XInternAtoms (dpy, names, count, onlyIfExists, atoms_return) } if (_XReply (dpy, (xReply *)&rep, 0, xTrue)) { if ((atoms_return[missed] = rep.atom)) - _XUpdateAtomCache(dpy, names[missed], (Atom) rep.atom, + _XUpdateAtomCache(dpy, names[missed], (Atom) rep.atom, sig, idx, n); } else { atoms_return[missed] = None; |