diff options
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) |