summaryrefslogtreecommitdiff
path: root/src/EvToWire.c
diff options
context:
space:
mode:
authorThien-Thi Nguyen <ttn@gnuvola.org>2009-12-01 10:31:47 +0100
committerAlan Coopersmith <alan.coopersmith@sun.com>2010-01-11 20:54:38 -0800
commitccf21a8877f40136e25f2f62d0668b0c76b3cfbd (patch)
treea4bbb6f46a4a00b856f3bb8faa47da286cef4369 /src/EvToWire.c
parent4d4676c0d6324d2ff9d00d15ab485fa5d848a369 (diff)
libX11: Fix comment: Invert polarity (direction) of reformat description.
Signed-off-by: Thien-Thi Nguyen <ttn@gnuvola.org> Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'src/EvToWire.c')
-rw-r--r--src/EvToWire.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/EvToWire.c b/src/EvToWire.c
index 124fb744..b4d7c2b0 100644
--- a/src/EvToWire.c
+++ b/src/EvToWire.c
@@ -42,13 +42,15 @@ from The Open Group.
#include "Xlibint.h"
/*
- * reformat a wire event into an XEvent structure of the right type.
+ * Reformat an XEvent structure to a wire event of the right type.
+ * Return True on success. If the type is unrecognized, return what
+ * _XUnknownNativeEvent returns (i.e., False).
*/
Status
_XEventToWire(
-register Display *dpy, /* pointer to display structure */
-register XEvent *re, /* pointer to where event should be reformatted */
-register xEvent *event) /* wire protocol event */
+ register Display *dpy,
+ register XEvent *re, /* in: from */
+ register xEvent *event) /* out: to */
{
switch (event->u.u.type = re->type) {
case KeyPress: