diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-09-16 22:55:23 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-09-16 22:55:23 -0700 |
commit | 8f68b59f2b66f035ad97e3fe99e9eae983d1f44b (patch) | |
tree | 043d436fec616e35a6a6dd8692bf5154d1a83e11 | |
parent | 01dc43ee0fbdb1ed2397a735dfb69b0434600a20 (diff) |
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>
-rw-r--r-- | Makefile.am | 6 | ||||
-rw-r--r-- | man/XTest.xml | 32 | ||||
-rw-r--r-- | src/XRecord.c | 20 | ||||
-rw-r--r-- | src/XTest.c | 2 |
4 files changed, 30 insertions, 30 deletions
diff --git a/Makefile.am b/Makefile.am index 9bc0525..da9d32f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ -# +# # 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 diff --git a/man/XTest.xml b/man/XTest.xml index 22b6750..9d21ef7 100644 --- a/man/XTest.xml +++ b/man/XTest.xml @@ -3,22 +3,22 @@ "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"> <!-- lifted from troff+man by doclifter --> <refentry id='XTest.man'> -<!-- +<!-- Copyright © 1992 by UniSoft Group Ltd. Permission to use, copy, modify, and distribute this documentation for any purpose and without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. -UniSoft makes no representations about the suitability for any purpose of +copyright notice and this permission notice appear in all copies. +UniSoft makes no representations about the suitability for any purpose of the information in this document. This documentation is provided "as is" without express or implied warranty. Copyright © 1992, 1994 X Consortium -Permission is hereby granted, free of charge, to any person obtaining a +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation -the rights to use, copy, modify, merge, publish, distribute, sublicense, -and/or sell copies of the Software, and to permit persons to whom the +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in @@ -26,15 +26,15 @@ all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF -OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of the X Consortium shall not -be used in advertising or otherwise to promote the sale, use or other -dealings in this Software without prior written authorization from the +be used in advertising or otherwise to promote the sale, use or other +dealings in this Software without prior written authorization from the X Consortium. --> @@ -207,7 +207,7 @@ cc [ flag ... ] file ... -lXtst [ library ... ] <para>This extension is a minimal set of client and server extensions required to completely test the X11 server with no user intervention. This extension is not intended to support general journaling and -playback of user actions.</para> +playback of user actions.</para> <para>The functions provided by this extension fall into two groups:</para> <variablelist remap='IP'> @@ -218,7 +218,7 @@ playback of user actions.</para> actual implementation will depend on the details of the actual language binding and what degree of request buffering, GContext caching, and so on, is provided. In the C binding, routines are provided -to access the internals of two opaque data structures +to access the internals of two opaque data structures — <structname>GC</structname>s and <structname>Visual</structname>s — @@ -236,7 +236,7 @@ number to the server and for the server to respond with major and minor versions of its own. The remaining two requests allow the following:</para> <itemizedlist> <listitem> -<para>Access to an otherwise <emphasis>write-only</emphasis> server resource: +<para>Access to an otherwise <emphasis>write-only</emphasis> server resource: the cursor associated with a given window</para> </listitem> <listitem> @@ -278,12 +278,12 @@ with the cursor of the window specified by window returning <returnvalue>True</returnvalue> if they are the same and <returnvalue>False</returnvalue> -otherwise. +otherwise. If the extension is not supported, then the request is ignored and zero is returned.</para> -<para>If the extension is supported, +<para>If the extension is supported, <function>XTestCompareCurrentCursorWithWindow</function> performs a comparison of the current cursor with the cursor of the specified window returning 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)) |