Fix various build warnings reported by Joe Vender on MinGW.

This commit is contained in:
David Shaw 2005-11-03 04:46:20 +00:00
parent b82202f411
commit 2a662f7870
6 changed files with 22 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2005-11-02 David Shaw <dshaw@jabberwocky.com>
* configure.ac: Check for a getpagesize() declaration.
2005-10-14 David Shaw <dshaw@jabberwocky.com>
* NEWS: Clarify the cURL keyserver changes, and add a note about

View File

@ -813,6 +813,7 @@ else
fi
dnl Checks for library functions.
AC_CHECK_DECLS(getpagesize)
AC_FUNC_FSEEKO
AC_FUNC_VPRINTF
AC_FUNC_FORK

View File

@ -1,3 +1,8 @@
2005-11-02 David Shaw <dshaw@jabberwocky.com>
* gpgkeys_hkp.c (search_key): Fix warning with typecast (though
curl should really have defined that char * as const).
2005-08-25 David Shaw <dshaw@jabberwocky.com>
* ksutil.h, ksutil.c (parse_ks_options): Remove exact-name and

View File

@ -298,7 +298,7 @@ search_key(const char *searchkey)
fprintf(console,"gpgkeys: search type is %d, and key is \"%s\"\n",
search_type,searchkey);
searchkey_encoded=curl_escape(searchkey,0);
searchkey_encoded=curl_escape((char *)searchkey,0);
if(!searchkey_encoded)
{
fprintf(console,"gpgkeys: out of memory\n");

View File

@ -1,3 +1,8 @@
2005-11-02 David Shaw <dshaw@jabberwocky.com>
* util.c [!HAVE_DECL_GETPAGESIZE]: Prototype getpagesize() if
unistd.h doesn't have it (for MinGW).
2005-09-22 Werner Koch <wk@g10code.com>
* iobuf.c (iobuf_get_filelength): New arg OVERFLOW.

View File

@ -43,6 +43,12 @@
#include "util.h"
#include "i18n.h"
/* MinGW doesn't seem to prototype getpagesize, though it does have
it. */
#if !HAVE_DECL_GETPAGESIZE
int getpagesize(void);
#endif
#if defined(MAP_ANON) && !defined(MAP_ANONYMOUS)
#define MAP_ANONYMOUS MAP_ANON
#endif