summaryrefslogtreecommitdiff
path: root/Xext
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2012-03-15 15:18:29 +0000
committerJeremy Huddleston <jeremyhu@apple.com>2012-03-27 11:50:43 -0700
commit5926ed85a1e2cb873f9e0950cfe21510b6c94d6f (patch)
tree092f50ad42b3292c6e261ae1097bb75decee6f83 /Xext
parentdfecff4279b42a20ee1d186bfe49f5e2e3a53648 (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> (cherry picked from commit ab3a815a75ab5695753fa37a98b0ea5293d4cb91)
Diffstat (limited to 'Xext')
-rw-r--r--Xext/panoramiXprocs.c12
-rw-r--r--Xext/sync.c2
2 files changed, 7 insertions, 7 deletions
diff --git a/Xext/panoramiXprocs.c b/Xext/panoramiXprocs.c
index 7fb578b71..12d6163bb 100644
--- a/Xext/panoramiXprocs.c
+++ b/Xext/panoramiXprocs.c
@@ -1349,7 +1349,7 @@ PanoramiXPolyPoint(ClientPtr client)
int y_off = screenInfo.screens[j]->y;
if (x_off || y_off) {
- xPoint *pnts = (xPoint *) & stuff[1];
+ xPoint *pnts = (xPoint *) &stuff[1];
int i =
(stuff->coordMode == CoordModePrevious) ? 1 : npoint;
@@ -1414,7 +1414,7 @@ PanoramiXPolyLine(ClientPtr client)
int y_off = screenInfo.screens[j]->y;
if (x_off || y_off) {
- xPoint *pnts = (xPoint *) & stuff[1];
+ xPoint *pnts = (xPoint *) &stuff[1];
int i =
(stuff->coordMode == CoordModePrevious) ? 1 : npoint;
@@ -1483,7 +1483,7 @@ PanoramiXPolySegment(ClientPtr client)
int y_off = screenInfo.screens[j]->y;
if (x_off || y_off) {
- xSegment *segs = (xSegment *) & stuff[1];
+ xSegment *segs = (xSegment *) &stuff[1];
for (i = nsegs; i--; segs++) {
segs->x1 -= x_off;
@@ -1618,7 +1618,7 @@ PanoramiXPolyArc(ClientPtr client)
int y_off = screenInfo.screens[j]->y;
if (x_off || y_off) {
- xArc *arcs = (xArc *) & stuff[1];
+ xArc *arcs = (xArc *) &stuff[1];
for (i = narcs; i--; arcs++) {
arcs->x -= x_off;
@@ -1681,7 +1681,7 @@ PanoramiXFillPoly(ClientPtr client)
int y_off = screenInfo.screens[j]->y;
if (x_off || y_off) {
- DDXPointPtr pnts = (DDXPointPtr) & stuff[1];
+ DDXPointPtr pnts = (DDXPointPtr) &stuff[1];
int i = (stuff->coordMode == CoordModePrevious) ? 1 : count;
while (i--) {
@@ -1816,7 +1816,7 @@ PanoramiXPolyFillArc(ClientPtr client)
int y_off = screenInfo.screens[j]->y;
if (x_off || y_off) {
- xArc *arcs = (xArc *) & stuff[1];
+ xArc *arcs = (xArc *) &stuff[1];
for (i = narcs; i--; arcs++) {
arcs->x -= x_off;
diff --git a/Xext/sync.c b/Xext/sync.c
index d5d19d425..37c59c2be 100644
--- a/Xext/sync.c
+++ b/Xext/sync.c
@@ -1557,7 +1557,7 @@ ProcSyncAwait(ClientPtr client)
/* don't need to do any more memory allocation for this request! */
- pProtocolWaitConds = (xSyncWaitCondition *) & stuff[1];
+ pProtocolWaitConds = (xSyncWaitCondition *) &stuff[1];
pAwait = &(pAwaitUnion + 1)->await; /* skip over header */
for (i = 0; i < items; i++, pProtocolWaitConds++, pAwait++) {