From 757807cf6046694fd8e81b3cf258832b0ad08aac Mon Sep 17 00:00:00 2001 From: gildea Date: Wed, 2 Jan 1991 13:20:41 +0000 Subject: add cast for SVR4 compiler --- xc/lib/Xdmcp/RA16.c | 4 ++-- xc/lib/Xdmcp/RA32.c | 4 ++-- xc/lib/Xdmcp/RA8.c | 4 ++-- xc/lib/Xdmcp/RAofA8.c | 4 ++-- xc/lib/Xdmcp/WA16.c | 4 ++-- xc/lib/Xdmcp/WA32.c | 4 ++-- xc/lib/Xdmcp/WA8.c | 4 ++-- xc/lib/Xdmcp/WAofA8.c | 4 ++-- xc/lib/Xdmcp/Whead.c | 4 ++-- 9 files changed, 18 insertions(+), 18 deletions(-) diff --git a/xc/lib/Xdmcp/RA16.c b/xc/lib/Xdmcp/RA16.c index 21579b571..139575720 100644 --- a/xc/lib/Xdmcp/RA16.c +++ b/xc/lib/Xdmcp/RA16.c @@ -1,5 +1,5 @@ /* - * $XConsortium$ + * $XConsortium: RA16.c,v 1.1 89/09/14 17:11:13 keith Exp $ * * Copyright 1989 Massachusetts Institute of Technology * @@ -45,7 +45,7 @@ XdmcpReadARRAY16 (buffer, array) array->data = (CARD16 *) Xalloc (array->length * sizeof (CARD16)); if (!array->data) return FALSE; - for (i = 0; i < array->length; i++) + for (i = 0; i < (int)array->length; i++) { if (!XdmcpReadCARD16 (buffer, &array->data[i])) { diff --git a/xc/lib/Xdmcp/RA32.c b/xc/lib/Xdmcp/RA32.c index 27218c71f..516529090 100644 --- a/xc/lib/Xdmcp/RA32.c +++ b/xc/lib/Xdmcp/RA32.c @@ -1,5 +1,5 @@ /* - * $XConsortium$ + * $XConsortium: RA32.c,v 1.1 89/09/14 17:11:14 keith Exp $ * * Copyright 1989 Massachusetts Institute of Technology * @@ -45,7 +45,7 @@ XdmcpReadARRAY32 (buffer, array) array->data = (CARD32 *) Xalloc (array->length * sizeof (CARD32)); if (!array->data) return FALSE; - for (i = 0; i < array->length; i++) + for (i = 0; i < (int)array->length; i++) { if (!XdmcpReadCARD32 (buffer, &array->data[i])) { diff --git a/xc/lib/Xdmcp/RA8.c b/xc/lib/Xdmcp/RA8.c index be8ae6dab..65d2620a7 100644 --- a/xc/lib/Xdmcp/RA8.c +++ b/xc/lib/Xdmcp/RA8.c @@ -1,5 +1,5 @@ /* - * $XConsortium$ + * $XConsortium: RA8.c,v 1.1 89/09/14 17:11:15 keith Exp $ * * Copyright 1989 Massachusetts Institute of Technology * @@ -45,7 +45,7 @@ XdmcpReadARRAY8 (buffer, array) array->data = (CARD8 *) Xalloc (array->length * sizeof (CARD8)); if (!array->data) return FALSE; - for (i = 0; i < array->length; i++) + for (i = 0; i < (int)array->length; i++) { if (!XdmcpReadCARD8 (buffer, &array->data[i])) { diff --git a/xc/lib/Xdmcp/RAofA8.c b/xc/lib/Xdmcp/RAofA8.c index 1833ce53c..1b95e7e39 100644 --- a/xc/lib/Xdmcp/RAofA8.c +++ b/xc/lib/Xdmcp/RAofA8.c @@ -1,5 +1,5 @@ /* - * $XConsortium$ + * $XConsortium: RAofA8.c,v 1.1 89/09/14 17:11:17 keith Exp $ * * Copyright 1989 Massachusetts Institute of Technology * @@ -45,7 +45,7 @@ XdmcpReadARRAYofARRAY8 (buffer, array) array->data = (ARRAY8 *) Xalloc (array->length * sizeof (ARRAY8)); if (!array->data) return FALSE; - for (i = 0; i < array->length; i++) + for (i = 0; i < (int)array->length; i++) { if (!XdmcpReadARRAY8 (buffer, &array->data[i])) { diff --git a/xc/lib/Xdmcp/WA16.c b/xc/lib/Xdmcp/WA16.c index 42175237f..e092e846e 100644 --- a/xc/lib/Xdmcp/WA16.c +++ b/xc/lib/Xdmcp/WA16.c @@ -1,5 +1,5 @@ /* - * $XConsortium$ + * $XConsortium: WA16.c,v 1.1 89/09/14 17:11:23 keith Exp $ * * Copyright 1989 Massachusetts Institute of Technology * @@ -37,7 +37,7 @@ XdmcpWriteARRAY16 (buffer, array) if (!XdmcpWriteCARD8 (buffer, array->length)) return FALSE; - for (i = 0; i < array->length; i++) + for (i = 0; i < (int)array->length; i++) if (!XdmcpWriteCARD16 (buffer, array->data[i])) return FALSE; return TRUE; diff --git a/xc/lib/Xdmcp/WA32.c b/xc/lib/Xdmcp/WA32.c index ac170b450..140b4cfd8 100644 --- a/xc/lib/Xdmcp/WA32.c +++ b/xc/lib/Xdmcp/WA32.c @@ -1,5 +1,5 @@ /* - * $XConsortium$ + * $XConsortium: WA32.c,v 1.1 89/09/14 17:11:24 keith Exp $ * * Copyright 1989 Massachusetts Institute of Technology * @@ -37,7 +37,7 @@ XdmcpWriteARRAY32 (buffer, array) if (!XdmcpWriteCARD8 (buffer, array->length)) return FALSE; - for (i = 0; i < array->length; i++) + for (i = 0; i < (int)array->length; i++) if (!XdmcpWriteCARD32 (buffer, array->data[i])) return FALSE; return TRUE; diff --git a/xc/lib/Xdmcp/WA8.c b/xc/lib/Xdmcp/WA8.c index 6f99e61fb..a39f1f4fb 100644 --- a/xc/lib/Xdmcp/WA8.c +++ b/xc/lib/Xdmcp/WA8.c @@ -1,5 +1,5 @@ /* - * $XConsortium$ + * $XConsortium: WA8.c,v 1.1 89/09/14 17:11:25 keith Exp $ * * Copyright 1989 Massachusetts Institute of Technology * @@ -37,7 +37,7 @@ XdmcpWriteARRAY8 (buffer, array) if (!XdmcpWriteCARD16 (buffer, array->length)) return FALSE; - for (i = 0; i < array->length; i++) + for (i = 0; i < (int)array->length; i++) if (!XdmcpWriteCARD8 (buffer, array->data[i])) return FALSE; return TRUE; diff --git a/xc/lib/Xdmcp/WAofA8.c b/xc/lib/Xdmcp/WAofA8.c index 7f2a0d950..000b555f0 100644 --- a/xc/lib/Xdmcp/WAofA8.c +++ b/xc/lib/Xdmcp/WAofA8.c @@ -1,5 +1,5 @@ /* - * $XConsortium: WAofA8.c,v 1.1 89/09/14 17:11:25 keith Exp $ + * $XConsortium: WAofA8.c,v 1.2 90/07/31 09:52:42 rws Exp $ * * Copyright 1989 Massachusetts Institute of Technology * @@ -37,7 +37,7 @@ XdmcpWriteARRAYofARRAY8 (buffer, array) if (!XdmcpWriteCARD8 (buffer, array->length)) return FALSE; - for (i = 0; i < array->length; i++) + for (i = 0; i < (int)array->length; i++) if (!XdmcpWriteARRAY8 (buffer, &array->data[i])) return FALSE; return TRUE; diff --git a/xc/lib/Xdmcp/Whead.c b/xc/lib/Xdmcp/Whead.c index 8ce8a3f5f..c89ee06f7 100644 --- a/xc/lib/Xdmcp/Whead.c +++ b/xc/lib/Xdmcp/Whead.c @@ -1,5 +1,5 @@ /* - * $XConsortium$ + * $XConsortium: Whead.c,v 1.1 89/09/14 17:11:27 keith Exp $ * * Copyright 1989 Massachusetts Institute of Technology * @@ -35,7 +35,7 @@ XdmcpWriteHeader (buffer, header) { BYTE *newData; - if (buffer->size < 6 + header->length) + if ((int)buffer->size < 6 + (int)header->length) { newData = (BYTE *) Xalloc (XDM_MAX_MSGLEN * sizeof (BYTE)); if (!newData) -- cgit v1.2.3