summaryrefslogtreecommitdiff
path: root/test/xi2/protocol-xiquerypointer.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-09-21 14:34:27 -0700
committerKeith Packard <keithp@keithp.com>2011-09-21 14:34:27 -0700
commit7fb4bef0394a5d09680985d34bce8252b61493cb (patch)
tree9377b410bd93e67d78970c69b7c79cc8c318fa23 /test/xi2/protocol-xiquerypointer.c
parent98f4940093dc90c3366d3e4d3ddceacbaee299dc (diff)
parentc90903b4f7a826ae6826a8dd0a901c8362500e46 (diff)
Merge remote-tracking branch 'mattst88/for-keith'
Diffstat (limited to 'test/xi2/protocol-xiquerypointer.c')
-rw-r--r--test/xi2/protocol-xiquerypointer.c24
1 files changed, 11 insertions, 13 deletions
diff --git a/test/xi2/protocol-xiquerypointer.c b/test/xi2/protocol-xiquerypointer.c
index 0985ec70d..65346ab5d 100644
--- a/test/xi2/protocol-xiquerypointer.c
+++ b/test/xi2/protocol-xiquerypointer.c
@@ -81,16 +81,15 @@ static void reply_XIQueryPointer(ClientPtr client, int len, char *data,
if (client->swapped)
{
- char n;
- swapl(&rep->length, n);
- swaps(&rep->sequenceNumber, n);
- swapl(&rep->root, n);
- swapl(&rep->child, n);
- swapl(&rep->root_x, n);
- swapl(&rep->root_y, n);
- swapl(&rep->win_x, n);
- swapl(&rep->win_y, n);
- swaps(&rep->buttons_len, n);
+ swapl(&rep->length);
+ swaps(&rep->sequenceNumber);
+ swapl(&rep->root);
+ swapl(&rep->child);
+ swapl(&rep->root_x);
+ swapl(&rep->root_y);
+ swapl(&rep->win_x);
+ swapl(&rep->win_y);
+ swaps(&rep->buttons_len);
}
reply_check_defaults(rep, len, XIQueryPointer);
@@ -132,7 +131,6 @@ static void reply_XIQueryPointer_data(ClientPtr client, int len, char *data, voi
static void request_XIQueryPointer(ClientPtr client, xXIQueryPointerReq* req, int error)
{
- char n;
int rc;
rc = ProcXIQueryPointer(&client_request);
@@ -142,8 +140,8 @@ static void request_XIQueryPointer(ClientPtr client, xXIQueryPointerReq* req, in
assert(client_request.errorValue == req->deviceid);
client_request.swapped = TRUE;
- swaps(&req->deviceid, n);
- swaps(&req->length, n);
+ swaps(&req->deviceid);
+ swaps(&req->length);
rc = SProcXIQueryPointer(&client_request);
assert(rc == error);