From cedde79d5964fa3574d1b9977aa58461e00d2381 Mon Sep 17 00:00:00 2001 From: Kaleb Keithley Date: Mon, 17 Nov 2003 19:03:42 +0000 Subject: merge XFree86 4.3.0.1 to -CURRENT --- src/XRecord.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/XRecord.c') diff --git a/src/XRecord.c b/src/XRecord.c index 8c32491..138ff61 100644 --- a/src/XRecord.c +++ b/src/XRecord.c @@ -50,16 +50,17 @@ from The Open Group. /* * By Stephen Gildea, X Consortium, and Martha Zimet, NCD. */ +/* $XFree86: xc/lib/Xtst/XRecord.c,v 1.6 2002/10/16 00:37:33 dawes Exp $ */ #include #include #define NEED_EVENTS #define NEED_REPLIES #include -#include "Xext.h" +#include #include -#include "extutil.h" -#include "recordstr.h" +#include +#include extern unsigned long _XSetLastRequestRead(); @@ -739,7 +740,7 @@ parse_reply_call_callback(dpy, info, rep, reply, callback, closure) XPointer closure; { int current_index; - int datum_bytes; + int datum_bytes = 0; XRecordInterceptData *data; /* call the callback for each protocol element in the reply */ @@ -821,7 +822,7 @@ parse_reply_call_callback(dpy, info, rep, reply, callback, closure) if (current_index + datum_bytes > rep->length << 2) fprintf(stderr, "XRecord: %lu-byte reply claims %d-byte element (seq %lu)\n", - rep->length << 2, current_index + datum_bytes, + (long)rep->length << 2, current_index + datum_bytes, dpy->last_request_read); /* * This assignment (and indeed the whole buffer sharing @@ -928,7 +929,6 @@ record_async_handler(dpy, rep, buf, len, adata) register record_async_state *state = (record_async_state *)adata; struct reply_buffer *reply; enum parser_return status; - extern void _XGetAsyncData(); if (dpy->last_request_read != state->enable_seq) { @@ -957,7 +957,7 @@ record_async_handler(dpy, rep, buf, len, adata) return False; } - _XGetAsyncData(dpy, reply->buf, buf, len, + _XGetAsyncData(dpy, (char *)reply->buf, buf, len, SIZEOF(xRecordEnableContextReply), rep->generic.length << 2, 0); } else { -- cgit v1.2.3