Index: configure ================================================================== --- configure +++ configure @@ -1,9 +1,9 @@ #! /bin/sh # From configure.in Revision . # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.59 for libconfig 0.0.6. +# Generated by GNU Autoconf 2.59 for libconfig 0.0.8. # # Copyright (C) 2003 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## --------------------- ## @@ -266,12 +266,12 @@ : ${ac_max_here_lines=38} # Identity of this package. PACKAGE_NAME='libconfig' PACKAGE_TARNAME='libconfig' -PACKAGE_VERSION='0.0.6' -PACKAGE_STRING='libconfig 0.0.6' +PACKAGE_VERSION='0.0.8' +PACKAGE_STRING='libconfig 0.0.8' PACKAGE_BUGREPORT='' # Factoring default headers for most tests. ac_includes_default="\ #include @@ -776,11 +776,11 @@ # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures libconfig 0.0.6 to adapt to many kinds of systems. +\`configure' configures libconfig 0.0.8 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. @@ -837,11 +837,11 @@ _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of libconfig 0.0.6:";; + short | recursive ) echo "Configuration of libconfig 0.0.8:";; esac cat <<\_ACEOF Some influential environment variables: CC C compiler command @@ -948,11 +948,11 @@ fi test -n "$ac_init_help" && exit 0 if $ac_init_version; then cat <<\_ACEOF -libconfig configure 0.0.6 +libconfig configure 0.0.8 generated by GNU Autoconf 2.59 Copyright (C) 2003 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. @@ -962,11 +962,11 @@ exec 5>config.log cat >&5 <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by libconfig $as_me 0.0.6, which was +It was created by libconfig $as_me 0.0.8, which was generated by GNU Autoconf 2.59. Invocation command line was $ $0 $@ _ACEOF @@ -16684,11 +16684,11 @@ ## Running $as_me. ## _ASBOX } >&5 cat >&5 <<_CSEOF -This file was extended by libconfig $as_me 0.0.6, which was +This file was extended by libconfig $as_me 0.0.8, which was generated by GNU Autoconf 2.59. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS @@ -16744,11 +16744,11 @@ Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ -libconfig config.status 0.0.6 +libconfig config.status 0.0.8 configured by $0, generated by GNU Autoconf 2.59, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2003 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation Index: strtoull.c ================================================================== --- strtoull.c +++ strtoull.c @@ -3,20 +3,21 @@ #include #include #include /* We only handle base 10. */ -unsigned long long int strtoull(char *nptr, char **endptr, int base) { +unsigned long long int strtoull(const char *nptr, char **endptr, int base) { unsigned long long int retval = 0; + const char **endptrd = (const char **) endptr; char *idx = NULL; for (idx = nptr; *idx != '\0' && isdigit(*idx); idx++) { retval *= 10; retval += (*idx - '0'); } - if (endptr != NULL) { - *endptr = idx; + if (endptrd != NULL) { + *endptrd = idx; } return(retval); } Index: strtoull.h ================================================================== --- strtoull.h +++ strtoull.h @@ -1,6 +1,6 @@ #ifndef _RSK_STRTOULL_H #define _RSK_STRTOULL_H -unsigned long long int strtoull(char *nptr, char **endptr, int base); +unsigned long long int strtoull(const char *nptr, char **endptr, int base); #endif