Check-in [58c3554ca1]
Overview
Comment:Fixed some warnings. libconfig 0.0.8
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | 0.0.8
Files: files | file ages | folders
SHA1:58c3554ca1a8ccaad5d81c618d0fea070cf724be
User & Date: rkeene on 2004-10-29 03:10:28
Other Links: manifest | tags
Context
2004-10-29
03:25
Fixed makefile to work with BSD make check-in: 608a304b3b user: rkeene tags: trunk
03:10
Fixed some warnings. libconfig 0.0.8 check-in: 58c3554ca1 user: rkeene tags: trunk, 0.0.8
03:01
Updated to remove PRINTERR and PRINTERR_D (Mac OS X's c preprocessor doesn't handle variadic macros) Updated strtoull.c to work. Added config.guess/config.sub (needed for determining SHLIBEXT) A few misc changes. libconfig 0.0.7 check-in: 2eca7c583b user: rkeene tags: trunk, 0.0.7
Changes

Modified configure from [21d0f9a3db] to [485196b7cc].

     1      1   #! /bin/sh
     2      2   # From configure.in Revision .
     3      3   # Guess values for system-dependent variables and create Makefiles.
     4         -# Generated by GNU Autoconf 2.59 for libconfig 0.0.6.
            4  +# Generated by GNU Autoconf 2.59 for libconfig 0.0.8.
     5      5   #
     6      6   # Copyright (C) 2003 Free Software Foundation, Inc.
     7      7   # This configure script is free software; the Free Software Foundation
     8      8   # gives unlimited permission to copy, distribute and modify it.
     9      9   ## --------------------- ##
    10     10   ## M4sh Initialization.  ##
    11     11   ## --------------------- ##
................................................................................
   264    264   # This variable seems obsolete.  It should probably be removed, and
   265    265   # only ac_max_sed_lines should be used.
   266    266   : ${ac_max_here_lines=38}
   267    267   
   268    268   # Identity of this package.
   269    269   PACKAGE_NAME='libconfig'
   270    270   PACKAGE_TARNAME='libconfig'
   271         -PACKAGE_VERSION='0.0.6'
   272         -PACKAGE_STRING='libconfig 0.0.6'
          271  +PACKAGE_VERSION='0.0.8'
          272  +PACKAGE_STRING='libconfig 0.0.8'
   273    273   PACKAGE_BUGREPORT=''
   274    274   
   275    275   # Factoring default headers for most tests.
   276    276   ac_includes_default="\
   277    277   #include <stdio.h>
   278    278   #if HAVE_SYS_TYPES_H
   279    279   # include <sys/types.h>
................................................................................
   774    774   #
   775    775   # Report the --help message.
   776    776   #
   777    777   if test "$ac_init_help" = "long"; then
   778    778     # Omit some internal or obsolete options to make the list less imposing.
   779    779     # This message is too long to be a string in the A/UX 3.1 sh.
   780    780     cat <<_ACEOF
   781         -\`configure' configures libconfig 0.0.6 to adapt to many kinds of systems.
          781  +\`configure' configures libconfig 0.0.8 to adapt to many kinds of systems.
   782    782   
   783    783   Usage: $0 [OPTION]... [VAR=VALUE]...
   784    784   
   785    785   To assign environment variables (e.g., CC, CFLAGS...), specify them as
   786    786   VAR=VALUE.  See below for descriptions of some of the useful variables.
   787    787   
   788    788   Defaults for the options are specified in brackets.
................................................................................
   835    835     --build=BUILD     configure for building on BUILD [guessed]
   836    836     --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   837    837   _ACEOF
   838    838   fi
   839    839   
   840    840   if test -n "$ac_init_help"; then
   841    841     case $ac_init_help in
   842         -     short | recursive ) echo "Configuration of libconfig 0.0.6:";;
          842  +     short | recursive ) echo "Configuration of libconfig 0.0.8:";;
   843    843      esac
   844    844     cat <<\_ACEOF
   845    845   
   846    846   Some influential environment variables:
   847    847     CC          C compiler command
   848    848     CFLAGS      C compiler flags
   849    849     LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
................................................................................
   946    946       cd $ac_popdir
   947    947     done
   948    948   fi
   949    949   
   950    950   test -n "$ac_init_help" && exit 0
   951    951   if $ac_init_version; then
   952    952     cat <<\_ACEOF
   953         -libconfig configure 0.0.6
          953  +libconfig configure 0.0.8
   954    954   generated by GNU Autoconf 2.59
   955    955   
   956    956   Copyright (C) 2003 Free Software Foundation, Inc.
   957    957   This configure script is free software; the Free Software Foundation
   958    958   gives unlimited permission to copy, distribute and modify it.
   959    959   _ACEOF
   960    960     exit 0
   961    961   fi
   962    962   exec 5>config.log
   963    963   cat >&5 <<_ACEOF
   964    964   This file contains any messages produced by compilers while
   965    965   running configure, to aid debugging if configure makes a mistake.
   966    966   
   967         -It was created by libconfig $as_me 0.0.6, which was
          967  +It was created by libconfig $as_me 0.0.8, which was
   968    968   generated by GNU Autoconf 2.59.  Invocation command line was
   969    969   
   970    970     $ $0 $@
   971    971   
   972    972   _ACEOF
   973    973   {
   974    974   cat <<_ASUNAME
................................................................................
 16682  16682     echo
 16683  16683     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 16684  16684   ## Running $as_me. ##
 16685  16685   _ASBOX
 16686  16686   } >&5
 16687  16687   cat >&5 <<_CSEOF
 16688  16688   
 16689         -This file was extended by libconfig $as_me 0.0.6, which was
        16689  +This file was extended by libconfig $as_me 0.0.8, which was
 16690  16690   generated by GNU Autoconf 2.59.  Invocation command line was
 16691  16691   
 16692  16692     CONFIG_FILES    = $CONFIG_FILES
 16693  16693     CONFIG_HEADERS  = $CONFIG_HEADERS
 16694  16694     CONFIG_LINKS    = $CONFIG_LINKS
 16695  16695     CONFIG_COMMANDS = $CONFIG_COMMANDS
 16696  16696     $ $0 $@
................................................................................
 16742  16742   $config_headers
 16743  16743   
 16744  16744   Report bugs to <bug-autoconf@gnu.org>."
 16745  16745   _ACEOF
 16746  16746   
 16747  16747   cat >>$CONFIG_STATUS <<_ACEOF
 16748  16748   ac_cs_version="\\
 16749         -libconfig config.status 0.0.6
        16749  +libconfig config.status 0.0.8
 16750  16750   configured by $0, generated by GNU Autoconf 2.59,
 16751  16751     with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 16752  16752   
 16753  16753   Copyright (C) 2003 Free Software Foundation, Inc.
 16754  16754   This config.status script is free software; the Free Software Foundation
 16755  16755   gives unlimited permission to copy, distribute and modify it."
 16756  16756   srcdir=$srcdir

Modified strtoull.c from [f78330ce18] to [a2ea6970d9].

     1      1   #include <sys/types.h>
     2      2   #include <stdlib.h>
     3      3   #include <limits.h>
     4      4   #include <ctype.h>
     5      5   #include <stdio.h>
     6      6   
     7      7   /* We only handle base 10. */
     8         -unsigned long long int strtoull(char *nptr, char **endptr, int base) {
            8  +unsigned long long int strtoull(const char *nptr, char **endptr, int base) {
     9      9   	unsigned long long int retval = 0;
           10  +	const char **endptrd = (const char **) endptr;
    10     11   	char *idx = NULL;
    11     12   
    12     13   	for (idx = nptr; *idx != '\0' && isdigit(*idx); idx++) {
    13     14   		retval *= 10;
    14     15   		retval += (*idx - '0');
    15     16   	}
    16     17   
    17         -	if (endptr != NULL) {
    18         -		*endptr = idx;
           18  +	if (endptrd != NULL) {
           19  +		*endptrd = idx;
    19     20   	}
    20     21   
    21     22   	return(retval);
    22     23   }

Modified strtoull.h from [d844e2c6b9] to [8b39b46ef3].

     1      1   #ifndef _RSK_STRTOULL_H
     2      2   #define _RSK_STRTOULL_H
     3      3   
     4         -unsigned long long int strtoull(char *nptr, char **endptr, int base);
            4  +unsigned long long int strtoull(const char *nptr, char **endptr, int base);
     5      5   
     6      6   #endif