summaryrefslogtreecommitdiff
path: root/dix/devices.c
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2012-03-15 15:18:29 +0000
committerKeith Packard <keithp@keithp.com>2012-03-21 14:02:30 -0700
commitab3a815a75ab5695753fa37a98b0ea5293d4cb91 (patch)
treea8fd1cf44108245b42ba409944be962ac060098d /dix/devices.c
parent58b1f739d73b03ff7952ca986ed8746a7307fffe (diff)
Indentation: Change '& stuff' to '&stuff'
If the typedef wasn't perfect, indent would get confused and change: foo = (SomePointlessTypedef *) &stuff[1]; to: foo = (SomePointlessTypedef *) & stuff[1]; Fix this up with a really naïve sed script, plus some hand-editing to change some false positives in XKB back. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'dix/devices.c')
-rw-r--r--dix/devices.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dix/devices.c b/dix/devices.c
index cdbc2b036..012550443 100644
--- a/dix/devices.c
+++ b/dix/devices.c
@@ -1718,7 +1718,7 @@ ProcChangeKeyboardMapping(ClientPtr client)
keysyms.minKeyCode = stuff->firstKeyCode;
keysyms.maxKeyCode = stuff->firstKeyCode + stuff->keyCodes - 1;
keysyms.mapWidth = stuff->keySymsPerKeyCode;
- keysyms.map = (KeySym *) & stuff[1];
+ keysyms.map = (KeySym *) &stuff[1];
rc = XaceHook(XACE_DEVICE_ACCESS, client, pDev, DixManageAccess);
if (rc != Success)
@@ -1763,7 +1763,7 @@ ProcSetPointerMapping(ClientPtr client)
rep.length = 0;
rep.sequenceNumber = client->sequence;
rep.success = MappingSuccess;
- map = (BYTE *) & stuff[1];
+ map = (BYTE *) &stuff[1];
/* So we're bounded here by the number of core buttons. This check
* probably wants disabling through XFixes. */