summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/XRecord.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/XRecord.c b/src/XRecord.c
index fefd842..00f4480 100644
--- a/src/XRecord.c
+++ b/src/XRecord.c
@@ -510,9 +510,7 @@ XRecordGetContext(Display *dpy, XRecordContext context,
void
XRecordFreeState(XRecordState *state)
{
- int i;
-
- for(i=0; i<state->nclients; i++) {
+ for (unsigned long i = 0; i < state->nclients; i++) {
if (state->client_info[i]->ranges) {
if (state->client_info[i]->ranges[0])
Xfree(state->client_info[i]->ranges[0]);
@@ -727,7 +725,7 @@ parse_reply_call_callback(
XRecordInterceptProc callback,
XPointer closure)
{
- int current_index;
+ unsigned int current_index;
int datum_bytes = 0;
XRecordInterceptData *data;