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 /src/XRecord.c | |
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>
Diffstat (limited to 'src/XRecord.c')
-rw-r--r-- | src/XRecord.c | 20 |
1 files changed, 10 insertions, 10 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) |