summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-16 22:55:23 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-16 22:55:23 -0700
commit8f68b59f2b66f035ad97e3fe99e9eae983d1f44b (patch)
tree043d436fec616e35a6a6dd8692bf5154d1a83e11 /src
parent01dc43ee0fbdb1ed2397a735dfb69b0434600a20 (diff)
downloadxorg-lib-libXtst-8f68b59f2b66f035ad97e3fe99e9eae983d1f44b.tar.gz
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: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src')
-rw-r--r--src/XRecord.c20
-rw-r--r--src/XTest.c2
2 files changed, 11 insertions, 11 deletions
diff --git a/src/XRecord.c b/src/XRecord.c
index 45c8b43..69d6120 100644
--- a/src/XRecord.c
+++ b/src/XRecord.c
@@ -160,7 +160,7 @@ static int close_display(
static XPointer alloc_mem_cache(void)
{
struct mem_cache_str *cache;
-
+
/* note that an error will go unnoticed */
cache = (struct mem_cache_str *) Xmalloc(sizeof(struct mem_cache_str));
if (cache) {
@@ -234,7 +234,7 @@ SendRange(
xrange.errorsLast = (*range_item)->errors.last;
xrange.clientStarted = (*range_item)->client_started;
xrange.clientDied = (*range_item)->client_died;
-
+
Data(dpy, (char *)&xrange, rlen);
range_item++;
}
@@ -727,7 +727,7 @@ parse_reply_call_callback(
data = alloc_inter_data(info);
if (!data)
return Error;
-
+
data->id_base = rep->idBase;
data->category = rep->category;
data->client_swapped = rep->clientSwapped;
@@ -795,7 +795,7 @@ parse_reply_call_callback(
case XRecordEndOfData:
datum_bytes = 0;
}
-
+
if (datum_bytes > 0) {
if (current_index + datum_bytes > rep->length << 2)
fprintf(stderr,
@@ -805,7 +805,7 @@ parse_reply_call_callback(
/*
* This assignment (and indeed the whole buffer sharing
* scheme) assumes arbitrary 4-byte boundaries are
- * addressable.
+ * addressable.
*/
data->data = reply->buf+current_index;
reply->ref_count++;
@@ -813,9 +813,9 @@ parse_reply_call_callback(
data->data = NULL;
}
data->data_len = datum_bytes >> 2;
-
+
(*callback)(closure, data);
-
+
current_index += datum_bytes;
} while (current_index<rep->length<<2);
@@ -931,7 +931,7 @@ record_async_handler(
Xfree(state->async);
return False;
}
-
+
_XGetAsyncData(dpy, (char *)reply->buf, buf, len,
SIZEOF(xRecordEnableContextReply),
rep->generic.length << 2, 0);
@@ -939,8 +939,8 @@ record_async_handler(
reply = NULL;
}
- status = parse_reply_call_callback(dpy, state->info,
- (xRecordEnableContextReply*) rep,
+ status = parse_reply_call_callback(dpy, state->info,
+ (xRecordEnableContextReply*) rep,
reply, state->callback, state->closure);
if (status != Continue)
diff --git a/src/XTest.c b/src/XTest.c
index 76193a1..759e0e8 100644
--- a/src/XTest.c
+++ b/src/XTest.c
@@ -81,7 +81,7 @@ get_xinput_base(Display *dpy)
}
static XEXT_GENERATE_FIND_DISPLAY (find_display, xtest_info,
- xtest_extension_name,
+ xtest_extension_name,
&xtest_extension_hooks, XTestNumberEvents,
get_xinput_base(dpy))