summaryrefslogtreecommitdiffstats
path: root/Utilities/cmxmlrpc/xmlrpc_data.c
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-03-30 18:49:56 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-03-30 18:49:56 (GMT)
commit5a2668b326471874ca69357af831cdcf1575c621 (patch)
tree92f40c9de267766f0533df44212ec2df6415aa47 /Utilities/cmxmlrpc/xmlrpc_data.c
parent08b14163ee2cc9cced08d80b2c81b29c83072229 (diff)
downloadCMake-5a2668b326471874ca69357af831cdcf1575c621.zip
CMake-5a2668b326471874ca69357af831cdcf1575c621.tar.gz
CMake-5a2668b326471874ca69357af831cdcf1575c621.tar.bz2
ENH: add support for win64 for visual studio 2005 ide and nmake, also fix warnings produced by building for win64
Diffstat (limited to 'Utilities/cmxmlrpc/xmlrpc_data.c')
-rw-r--r--Utilities/cmxmlrpc/xmlrpc_data.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/Utilities/cmxmlrpc/xmlrpc_data.c b/Utilities/cmxmlrpc/xmlrpc_data.c
index fc6840f..0d3c3ca 100644
--- a/Utilities/cmxmlrpc/xmlrpc_data.c
+++ b/Utilities/cmxmlrpc/xmlrpc_data.c
@@ -254,12 +254,12 @@ xmlrpc_read_string(xmlrpc_env * const envP,
-----------------------------------------------------------------------------*/
validateType(envP, valueP, XMLRPC_TYPE_STRING);
if (!envP->fault_occurred) {
- unsigned int const size =
+ size_t const size =
XMLRPC_MEMBLOCK_SIZE(char, &valueP->_block);
const char * const contents =
XMLRPC_MEMBLOCK_CONTENTS(char, &valueP->_block);
- verifyNoNulls(envP, contents, size);
+ verifyNoNulls(envP, contents, (unsigned int)size);
if (!envP->fault_occurred) {
char * stringValue;
@@ -289,7 +289,7 @@ xmlrpc_read_string_lp(xmlrpc_env * const envP,
validateType(envP, valueP, XMLRPC_TYPE_STRING);
if (!envP->fault_occurred) {
- unsigned int const size =
+ size_t const size =
XMLRPC_MEMBLOCK_SIZE(char, &valueP->_block);
const char * const contents =
XMLRPC_MEMBLOCK_CONTENTS(char, &valueP->_block);
@@ -304,7 +304,7 @@ xmlrpc_read_string_lp(xmlrpc_env * const envP,
else {
memcpy(stringValue, contents, size);
*stringValueP = stringValue;
- *lengthP = size;
+ *lengthP = (unsigned int)size;
}
}
}
@@ -449,7 +449,7 @@ getString(xmlrpc_env * const envP,
xmlrpc_value ** const valPP) {
const char * str;
- unsigned int len;
+ size_t len;
str = (const char*) va_arg(*args, char*);
if (**formatP == '#') {
@@ -458,7 +458,7 @@ getString(xmlrpc_env * const envP,
} else
len = strlen(str);
- mkString(envP, str, len, valPP);
+ mkString(envP, str, (unsigned int)len, valPP);
}
@@ -1143,7 +1143,7 @@ parsevalue(xmlrpc_env * const envP,
(*format)++;
*sizeptr = len;
} else
- verifyNoNulls(envP, contents, len);
+ verifyNoNulls(envP, contents, (unsigned int)len);
*strptr = contents;
}
break;
@@ -1173,7 +1173,7 @@ parsevalue(xmlrpc_env * const envP,
(*format)++;
*sizeptr = len;
} else
- verifyNoNullsW(envP, wcontents, len);
+ verifyNoNullsW(envP, wcontents, (unsigned int)len);
*wcsptr = wcontents;
}
}