summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2006-04-19 20:31:20 -0700
committerJamey Sharp <jamey@minilop.net>2006-04-19 20:31:20 -0700
commitf090da98f367ed869fd9277d2fef22555be0f91d (patch)
tree7fbdc0b06155c8c4568db0ba0df113d515a4dffc /src
parentd5347485a55e58381781d803e19bfdd982a4685b (diff)
Remove the last goto in XCB: XCBWaitForReply now permits multiple threads to force the same cookie.
Diffstat (limited to 'src')
-rw-r--r--src/xcb_in.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/xcb_in.c b/src/xcb_in.c
index 15bc915..db9d1ca 100644
--- a/src/xcb_in.c
+++ b/src/xcb_in.c
@@ -312,9 +312,7 @@ void *XCBWaitForReply(XCBConnection *c, unsigned int request, XCBGenericError **
reader_list **prev_reader;
for(prev_reader = &c->in.readers; *prev_reader && (*prev_reader)->request <= request; prev_reader = &(*prev_reader)->next)
- if((*prev_reader)->request == request)
- goto done; /* error */
-
+ /* empty */;
reader.request = request;
reader.data = &cond;
reader.next = *prev_reader;
@@ -324,7 +322,6 @@ void *XCBWaitForReply(XCBConnection *c, unsigned int request, XCBGenericError **
if(!_xcb_conn_wait(c, &cond, 0, 0))
break;
-done:
for(prev_reader = &c->in.readers; *prev_reader && (*prev_reader)->request <= request; prev_reader = &(*prev_reader)->next)
if(*prev_reader == &reader)
{