summaryrefslogtreecommitdiff
path: root/src/XlibInt.c
diff options
context:
space:
mode:
authorJosh Triplett <josh@freedesktop.org>2010-04-15 14:24:21 -0700
committerJamey Sharp <jamey@minilop.net>2010-04-15 14:24:21 -0700
commita3f5f1b90936d23e9894e3261b2d77fb7b32a51a (patch)
tree9f29db2482bea217773915442868084e5cad2829 /src/XlibInt.c
parenta6d974dc59f2722b36e2df9d4f07aeee4f83ce43 (diff)
downloadxorg-lib-libX11-a3f5f1b90936d23e9894e3261b2d77fb7b32a51a.tar.gz
Stop returning an int from _XIDHandler and _XSeqSyncFunction
_XIDHandler and _XSeqSyncFunction originally ran from dpy->synchandler, and thus had to return an int. Now, they only run from _XPrivSyncHandler or LockDisplay, neither of which needs to check their return value since they always returned 0. Make them both void. Signed-off-by: Josh Triplett <josh@freedesktop.org> Signed-off-by: Jamey Sharp <jamey@minilop.net>
Diffstat (limited to 'src/XlibInt.c')
-rw-r--r--src/XlibInt.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/XlibInt.c b/src/XlibInt.c
index 8ffea16d..5ed532bc 100644
--- a/src/XlibInt.c
+++ b/src/XlibInt.c
@@ -582,7 +582,7 @@ void sync_while_locked(Display *dpy)
#endif
}
-int _XSeqSyncFunction(
+void _XSeqSyncFunction(
register Display *dpy)
{
xGetInputFocusReply rep;
@@ -594,7 +594,6 @@ int _XSeqSyncFunction(
sync_while_locked(dpy);
} else if (sync_hazard(dpy))
_XSetPrivSyncFunction(dpy);
- return 0;
}
/* NOTE: only called if !XTHREADS, or when XInitThreads wasn't called. */
@@ -1556,7 +1555,7 @@ _XGetMiscCode(
}
}
-int
+void
_XIDHandler(
register Display *dpy)
{
@@ -1580,7 +1579,6 @@ _XIDHandler(
sync_while_locked(dpy);
}
}
- return 0;
}
/*