Skip to content
Snippets Groups Projects
Commit 19bea63b authored by Alan Coopersmith's avatar Alan Coopersmith
Browse files

Strip trailing whitespace


Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}'
git diff -w & git diff -b show no diffs from this change

Signed-off-by: default avatarAlan Coopersmith <alan.coopersmith@oracle.com>
parent 1ab0d436
Branches sisvga
No related tags found
No related merge requests found
#
#
# Copyright 2005 Red Hat, Inc.
#
#
# Permission to use, copy, modify, distribute, and sell this software and its
# documentation for any purpose is hereby granted without fee, provided that
# the above copyright notice appear in all copies and that both that
......@@ -10,7 +10,7 @@
# specific, written prior permission. Red Hat makes no
# representations about the suitability of this software for any purpose. It
# is provided "as is" without express or implied warranty.
#
#
# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
# EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
......
......@@ -87,7 +87,7 @@ typedef enum {
} DMXInputEnum;
/** Client-library input information structure, returned by
* #DMXGetInputAttributes. */
* #DMXGetInputAttributes. */
typedef struct {
DMXInputEnum inputType;
int physicalScreen;
......
......@@ -74,7 +74,7 @@ For local devices, all other fields returned, except
.I isCore " and " sendsCore ,
are invalid.
.PP
For console devices,
For console devices,
.I physicalScreen " and " physicalID
will be invalid, and
.I name
......
# Copyright 2005 Red Hat, Inc.
#
#
# Permission to use, copy, modify, distribute, and sell this software and its
# documentation for any purpose is hereby granted without fee, provided that
# the above copyright notice appear in all copies and that both that
......@@ -9,7 +9,7 @@
# specific, written prior permission. Red Hat makes no representations about
# the suitability of this software for any purpose. It is provided "as is" without
# express or implied warranty.
#
#
# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
# EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
......
......@@ -251,7 +251,7 @@ Bool DMXGetScreenAttributes(Display *dpy, int physical_screen,
_XReadPad(dpy, attr->displayName, rep.displayNameLength);
attr->displayName[rep.displayNameLength] = '\0';
attr->logicalScreen = rep.logicalScreen;
attr->screenWindowWidth = rep.screenWindowWidth;
attr->screenWindowHeight = rep.screenWindowHeight;
attr->screenWindowXoffset = rep.screenWindowXoffset;
......@@ -293,7 +293,7 @@ static int _DMXDumpScreenAttributes(Display *dpy,
unsigned long value_list[32];
unsigned long *value = value_list;
int count = 0;
for (i = 0; i < 32; i++) {
if (mask & (1 << i)) {
*value++ = _DMXGetScreenAttribute(i, attr);
......@@ -383,7 +383,7 @@ int DMXChangeScreensAttributes(Display *dpy,
if (i < mask_count) mask = masks[i];
req->length += _DMXDumpScreenAttributes(dpy, mask, attrs + i);
}
if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
UnlockDisplay(dpy);
SyncHandle();
......@@ -518,7 +518,7 @@ Bool DMXGetWindowAttributes(Display *dpy, Window window,
_XRead(dpy, (char *)windows, rep.screenCount * sizeof(*windows));
_XRead(dpy, (char *)pos, rep.screenCount * sizeof(*pos));
_XRead(dpy, (char *)vis, rep.screenCount * sizeof(*vis));
*screen_count = rep.screenCount;
for (current = 0;
current < rep.screenCount && current < (unsigned)available_count;
......@@ -590,7 +590,7 @@ static int _DMXDumpDesktopAttributes(Display *dpy,
unsigned long value_list[32];
unsigned long *value = value_list;
int count = 0;
for (i = 0; i < 32; i++) {
if (mask & (1 << i)) {
*value++ = _DMXGetDesktopAttribute(i, attr);
......@@ -606,7 +606,7 @@ static int _DMXDumpDesktopAttributes(Display *dpy,
* Available in DMX Protocol Version 2.0 */
int DMXChangeDesktopAttributes(Display *dpy,
unsigned int mask,
DMXDesktopAttributes *attr)
DMXDesktopAttributes *attr)
{
XExtDisplayInfo *info = find_display(dpy);
xDMXChangeDesktopAttributesReply rep;
......@@ -620,7 +620,7 @@ int DMXChangeDesktopAttributes(Display *dpy,
req->dmxReqType = X_DMXChangeDesktopAttributes;
req->valueMask = mask;
req->length +=_DMXDumpDesktopAttributes(dpy, mask, attr);
if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
UnlockDisplay(dpy);
SyncHandle();
......@@ -754,7 +754,7 @@ Bool DMXAddBackendInput(Display *dpy, int screen, int sendsCore, int *newId)
unsigned int mask = (DMXInputType
| DMXInputPhysicalScreen
| DMXInputSendsCore);
attr.inputType = DMXBackendInputType;
attr.physicalScreen = screen;
attr.sendsCore = sendsCore;
......@@ -769,7 +769,7 @@ Bool DMXAddConsoleInput(Display *dpy, const char *name, int sendsCore,
DMXInputAttributes attr;
unsigned int mask = (DMXInputType
| DMXInputSendsCore);
attr.inputType = DMXConsoleInputType;
attr.physicalScreen = 0;
attr.sendsCore = sendsCore;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment