Skip to content

Commit db63ef1

Browse files
author
giraffedata
committed
clean up some gcc 4 64-bit compiler warnings
git-svn-id: file:///var/tmp/xmlrpc/svn/trunk/xmlrpc-c@1013 adbb7d4b-a73a-0410-a071-c5f57c452bd4
1 parent f3859dd commit db63ef1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

include/xmlrpc-c/base.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ xmlrpc_build_value(xmlrpc_env * const env,
466466
void
467467
xmlrpc_build_value_va(xmlrpc_env * const env,
468468
const char * const format,
469-
va_list args,
469+
va_list const args,
470470
xmlrpc_value ** const valPP,
471471
const char ** const tailP);
472472

@@ -480,7 +480,7 @@ void
480480
xmlrpc_decompose_value_va(xmlrpc_env * const envP,
481481
xmlrpc_value * const value,
482482
const char * const format,
483-
va_list args);
483+
va_list const args);
484484

485485
/* xmlrpc_parse_value... is the same as xmlrpc_decompose_value... except
486486
that it doesn't do proper memory management -- it returns xmlrpc_value's
@@ -500,7 +500,7 @@ void
500500
xmlrpc_parse_value_va(xmlrpc_env * const envP,
501501
xmlrpc_value * const value,
502502
const char * const format,
503-
va_list args);
503+
va_list const args);
504504

505505
/*=========================================================================
506506
** Encoding XML

lib/expat/xmlparse/xmlparse.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2693,8 +2693,8 @@ processContentToken(XML_Parser const xmlParserP,
26932693
case XML_TOK_INVALID:
26942694
*eventPP = *nextP;
26952695
*errorCodeP = XML_ERROR_INVALID_TOKEN;
2696-
xmlrpc_asprintf(errorP, "Invalid token, starting %u bytes in",
2697-
*nextP - s);
2696+
xmlrpc_asprintf(errorP, "Invalid token, starting %ld bytes in",
2697+
(long)(*nextP - s));
26982698
break;
26992699
case XML_TOK_PARTIAL:
27002700
if (nextPtr) {

0 commit comments

Comments
 (0)