[pkg-lynx-commits] [lynx-cur] 01/03: New upstream version 2.8.9dev14

Axel Beckert abe at deuxchevaux.org
Thu May 11 01:18:49 UTC 2017


This is an automated email from the git hooks/post-receive script.

abe pushed a commit to branch master
in repository lynx-cur.

commit a65ab4d22bd0af5984cc1812b6a5fc7ba1400efc
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Thu May 11 03:14:58 2017 +0200

    New upstream version 2.8.9dev14
---
 CHANGES                            |   9 +-
 PACKAGE/debian/changelog           |   4 +-
 PACKAGE/lynx.nsi                   |   6 +-
 PACKAGE/lynx.spec                  |   4 +-
 PACKAGE/version.iss                |   2 +-
 WWW/Library/Implementation/HTTCP.c |   8 +-
 aclocal.m4                         |  18 +-
 config.sub                         |  11 +-
 configure                          | 848 ++++++++++++++++++-------------------
 configure.in                       |   6 +-
 lynx.cfg                           |   6 +-
 makefile.in                        |   4 +-
 src/HTFWriter.c                    |   4 +-
 src/HTML.c                         |   4 +-
 src/LYCurses.c                     |   4 +-
 src/LYIcon.rc                      |  10 +-
 src/LYStrings.c                    |  37 +-
 userdefs.h                         |   6 +-
 18 files changed, 519 insertions(+), 472 deletions(-)

diff --git a/CHANGES b/CHANGES
index 1118826..1d08891 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,8 +1,15 @@
--- $LynxId: CHANGES,v 1.889 2017/04/29 14:43:40 tom Exp $
+-- $LynxId: CHANGES,v 1.894 2017/05/11 01:03:49 tom Exp $
 ===============================================================================
 Changes since Lynx 2.8 release
 ===============================================================================
 
+2017-05-10 (2.8.9dev.14)
+* amend fix for Debian #841155, adding check for complete multibyte strings to
+  decide when the cell-limit has been met (Debian #862148) -TD
+* minor improvements to configure script to reduce warnings in config.log -TD
+* update config.sub (2017-04-02)
+* compiler-warning fixes for c99 on OSX -TD
+
 2017-04-29 (2.8.9dev.13)
 * amend fix for Debian #841155, adding check for special case where the
   expected number of cells is zero (report by Larry Hynes) -TD
diff --git a/PACKAGE/debian/changelog b/PACKAGE/debian/changelog
index 1878851..56e65d4 100644
--- a/PACKAGE/debian/changelog
+++ b/PACKAGE/debian/changelog
@@ -1,8 +1,8 @@
-lynx-dev (2.8.9dev.13) unstable; urgency=low
+lynx-dev (2.8.9dev.14) unstable; urgency=low
 
   * maintenance updates
 
- -- Thomas E. Dickey <dickey at invisible-island.net>  Sat, 29 Apr 2017 08:47:15 -0400
+ -- Thomas E. Dickey <dickey at invisible-island.net>  Sun, 30 Apr 2017 12:02:52 -0400
 
 lynx-dev (2.8.8dev.16) unstable; urgency=high
 
diff --git a/PACKAGE/lynx.nsi b/PACKAGE/lynx.nsi
index 08cb9c9..6615fc5 100644
--- a/PACKAGE/lynx.nsi
+++ b/PACKAGE/lynx.nsi
@@ -1,4 +1,4 @@
-; $LynxId: lynx.nsi,v 1.34 2017/04/29 12:47:15 tom Exp $
+; $LynxId: lynx.nsi,v 1.35 2017/04/30 16:02:52 tom Exp $
 ; Script originally generated with the Venis Install Wizard, but customized.
 ; The Inno Setup script is preferred; but this can be built via cross-compiling.
 
@@ -9,8 +9,8 @@
 !define VERSION_EPOCH "2"
 !define VERSION_MAJOR "8"
 !define VERSION_MINOR "9"
-!define VERSION_LEVEL "1013"
-!define VERSION_PATCH "dev.13"
+!define VERSION_LEVEL "1014"
+!define VERSION_PATCH "dev.14"
 
 !define SUBKEY "Lynx"
 
diff --git a/PACKAGE/lynx.spec b/PACKAGE/lynx.spec
index 1445aeb..33db2f9 100644
--- a/PACKAGE/lynx.spec
+++ b/PACKAGE/lynx.spec
@@ -1,8 +1,8 @@
-# $LynxId: lynx.spec,v 1.40 2017/04/29 12:47:15 tom Exp $
+# $LynxId: lynx.spec,v 1.41 2017/04/30 16:02:52 tom Exp $
 Summary: A text-based Web browser
 Name: lynx
 Version: 2.8.9
-Release: dev.13
+Release: dev.14
 License: GPLv2
 Group: Applications/Internet
 Source: lynx%{version}%{release}.tgz
diff --git a/PACKAGE/version.iss b/PACKAGE/version.iss
index a2b5727..211413d 100644
--- a/PACKAGE/version.iss
+++ b/PACKAGE/version.iss
@@ -1,7 +1,7 @@
 ; version used for Inno Setup files.
 
 ; $Format: "#define LYNX_VERSION \"$ProjectVersion$\""$
-#define LYNX_VERSION "2.8.9dev.13"
+#define LYNX_VERSION "2.8.9dev.14"
 
 ; most-recent full release and target
 #define LYNX_RELEASE "2.8.9"
diff --git a/WWW/Library/Implementation/HTTCP.c b/WWW/Library/Implementation/HTTCP.c
index f164871..87de04b 100644
--- a/WWW/Library/Implementation/HTTCP.c
+++ b/WWW/Library/Implementation/HTTCP.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: HTTCP.c,v 1.137 2017/01/02 02:11:14 tom Exp $
+ * $LynxId: HTTCP.c,v 1.138 2017/04/30 17:52:00 tom Exp $
  *
  *			Generic Communication Code		HTTCP.c
  *			==========================
@@ -389,7 +389,7 @@ static void dump_hostent(const char *msgprefix,
 
 	CTRACE((tfp, "%s: %p ", msgprefix, (const void *) phost));
 	if (phost) {
-	    CTRACE((tfp, "{ h_name = %p", phost->h_name));
+	    CTRACE((tfp, "{ h_name = %p", (void *) phost->h_name));
 	    if (phost->h_name) {
 		CTRACE((tfp, " \"%s\",", phost->h_name));
 	    } else {
@@ -401,7 +401,7 @@ static void dump_hostent(const char *msgprefix,
 		for (pcnt = phost->h_aliases; *pcnt; pcnt++) {
 		    CTRACE((tfp, "%s %p \"%s\"",
 			    (pcnt == phost->h_aliases ? " " : ", "),
-			    *pcnt, *pcnt));
+			    (void *) *pcnt, *pcnt));
 		}
 		CTRACE((tfp, "%s0x0 },\n\t",
 			(*phost->h_aliases ? ", " : " ")));
@@ -416,7 +416,7 @@ static void dump_hostent(const char *msgprefix,
 		for (pcnt = phost->h_addr_list; *pcnt; pcnt++) {
 		    CTRACE((tfp, "%s %p",
 			    (pcnt == phost->h_addr_list ? "" : ","),
-			    *pcnt));
+			    (void *) *pcnt));
 		    for (i = 0; i < phost->h_length; i++) {
 			CTRACE((tfp, "%s%d%s", (i == 0 ? " \"" : "."),
 				(int) *((unsigned char *) (*pcnt) + i),
diff --git a/aclocal.m4 b/aclocal.m4
index f76517c..7d116c7 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1,4 +1,4 @@
-dnl $LynxId: aclocal.m4,v 1.235 2017/04/27 09:15:35 tom Exp $
+dnl $LynxId: aclocal.m4,v 1.236 2017/05/10 22:32:05 tom Exp $
 dnl Macros for auto-configure script.
 dnl by Thomas E. Dickey <dickey at invisible-island.net>
 dnl and Jim Spath <jspath at mail.bcpl.lib.md.us>
@@ -2665,7 +2665,7 @@ AC_TRY_LINK([
 test "$cf_cv_fionbio" = "fcntl" && AC_DEFINE(USE_FCNTL,1,[Define to 1 if we should use fcntl])
 ])dnl
 dnl ---------------------------------------------------------------------------
-dnl CF_FUNC_CURSES_VERSION version: 6 updated: 2012/10/06 16:39:58
+dnl CF_FUNC_CURSES_VERSION version: 7 updated: 2017/05/10 18:31:29
 dnl ----------------------
 dnl Solaris has a data item 'curses_version', which confuses AC_CHECK_FUNCS.
 dnl It's a character string "SVR4", not documented.
@@ -2674,7 +2674,7 @@ AC_DEFUN([CF_FUNC_CURSES_VERSION],
 AC_CACHE_CHECK(for function curses_version, cf_cv_func_curses_version,[
 AC_TRY_RUN([
 #include <${cf_cv_ncurses_header:-curses.h}>
-int main()
+int main(void)
 {
 	char temp[1024];
 	sprintf(temp, "%s\n", curses_version());
@@ -2687,7 +2687,7 @@ rm -f core])
 test "$cf_cv_func_curses_version" = yes && AC_DEFINE(HAVE_CURSES_VERSION,1,[Define to 1 if we have curses_version function])
 ])
 dnl ---------------------------------------------------------------------------
-dnl CF_FUNC_GETADDRINFO version: 8 updated: 2012/11/08 20:57:52
+dnl CF_FUNC_GETADDRINFO version: 9 updated: 2017/05/10 18:31:29
 dnl -------------------
 dnl Look for a working version of getaddrinfo(), for IPV6 support.
 AC_DEFUN([CF_FUNC_GETADDRINFO],[
@@ -2701,7 +2701,7 @@ AC_TRY_RUN([
 
 #define expect(a,b) if (strcmp(a,b) != 0) goto bad
 
-int main()
+int main(void)
 {
    int passive, gaierr, inet4 = 0, inet6 = 0;
    struct addrinfo hints, *ai, *aitop;
@@ -4049,7 +4049,7 @@ CF_UPPER(cf_nculib_ROOT,HAVE_LIB$cf_nculib_root)
 AC_DEFINE_UNQUOTED($cf_nculib_ROOT)
 ])dnl
 dnl ---------------------------------------------------------------------------
-dnl CF_NCURSES_VERSION version: 14 updated: 2012/10/06 08:57:51
+dnl CF_NCURSES_VERSION version: 15 updated: 2017/05/09 19:26:10
 dnl ------------------
 dnl Check for the version of ncurses, to aid in reporting bugs, etc.
 dnl Call CF_CURSES_CPPFLAGS first, or CF_NCURSES_CPPFLAGS.  We don't use
@@ -4064,7 +4064,7 @@ AC_CACHE_CHECK(for ncurses version, cf_cv_ncurses_version,[
 	AC_TRY_RUN([
 #include <${cf_cv_ncurses_header:-curses.h}>
 #include <stdio.h>
-int main()
+int main(void)
 {
 	FILE *fp = fopen("$cf_tempfile", "w");
 #ifdef NCURSES_VERSION
@@ -4919,7 +4919,7 @@ CF_VERBOSE(...checked $1 [$]$1)
 AC_SUBST(EXTRA_LDFLAGS)
 ])dnl
 dnl ---------------------------------------------------------------------------
-dnl CF_SET_ERRNO version: 5 updated: 2012/11/08 20:57:52
+dnl CF_SET_ERRNO version: 6 updated: 2017/05/10 18:31:29
 dnl ------------
 dnl Check if 'errno' is declared in a fashion that lets us set it.
 AC_DEFUN([CF_SET_ERRNO],
@@ -4927,7 +4927,7 @@ AC_DEFUN([CF_SET_ERRNO],
 AC_CACHE_CHECK(if we can set errno,cf_cv_set_errno,[
 AC_TRY_RUN([
 #include <errno.h>
-int main()
+int main(void)
 {
 	errno = 255;
 	${cf_cv_main_return:-return}(errno != 255);
diff --git a/config.sub b/config.sub
index 87abeab..40ea5df 100755
--- a/config.sub
+++ b/config.sub
@@ -2,7 +2,7 @@
 # Configuration validation subroutine script.
 #   Copyright 1992-2017 Free Software Foundation, Inc.
 
-timestamp='2017-02-07'
+timestamp='2017-04-02'
 
 # This file is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
@@ -263,7 +263,7 @@ case $basic_machine in
 	| fido | fr30 | frv | ft32 \
 	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
 	| hexagon \
-	| i370 | i860 | i960 | ia64 \
+	| i370 | i860 | i960 | ia16 | ia64 \
 	| ip2k | iq2000 \
 	| k1om \
 	| le32 | le64 \
@@ -315,6 +315,7 @@ case $basic_machine in
 	| ubicom32 \
 	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
 	| visium \
+	| wasm32 \
 	| we32k \
 	| x86 | xc16x | xstormy16 | xtensa \
 	| z8k | z80)
@@ -388,7 +389,7 @@ case $basic_machine in
 	| h8300-* | h8500-* \
 	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
 	| hexagon-* \
-	| i*86-* | i860-* | i960-* | ia64-* \
+	| i*86-* | i860-* | i960-* | ia16-* | ia64-* \
 	| ip2k-* | iq2000-* \
 	| k1om-* \
 	| le32-* | le64-* \
@@ -446,6 +447,7 @@ case $basic_machine in
 	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
 	| vax-* \
 	| visium-* \
+	| wasm32-* \
 	| we32k-* \
 	| x86-* | x86_64-* | xc16x-* | xps100-* \
 	| xstormy16-* | xtensa*-* \
@@ -1246,6 +1248,9 @@ case $basic_machine in
 		basic_machine=a29k-wrs
 		os=-vxworks
 		;;
+	wasm32)
+		basic_machine=wasm32-unknown
+		;;
 	w65*)
 		basic_machine=w65-wdc
 		os=-none
diff --git a/configure b/configure
index e1d071d..f149941 100755
--- a/configure
+++ b/configure
@@ -1,7 +1,7 @@
 #! /bin/sh
-# From configure.in 2.8.9dev.13.
+# From configure.in 2.8.9dev.14.
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by Autoconf 2.52.20150926.
+# Generated by Autoconf 2.52.20170501.
 #
 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 # Free Software Foundation, Inc.
@@ -880,7 +880,7 @@ This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
 It was created by $as_me, which was
-generated by GNU Autoconf 2.52.20150926.  Invocation command line was
+generated by GNU Autoconf 2.52.20170501.  Invocation command line was
 
   $ $0 $@
 
@@ -1274,7 +1274,7 @@ rm conftest.sed
 
 PACKAGE=lynx
 # $Format: "VERSION=$ProjectVersion$"$
-VERSION=2.8.9dev.13
+VERSION=2.8.9dev.14
 
 echo "$as_me:1279: checking for DESTDIR" >&5
 echo $ECHO_N "checking for DESTDIR... $ECHO_C" >&6
@@ -1650,7 +1650,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include "confdefs.h"
 
 int
-main ()
+main (void)
 {
 
   ;
@@ -1781,7 +1781,7 @@ else
 #include "confdefs.h"
 
 int
-main ()
+main (void)
 {
 
   ;
@@ -1825,7 +1825,7 @@ else
 #include "confdefs.h"
 
 int
-main ()
+main (void)
 {
 #ifndef __GNUC__
        choke me
@@ -1873,7 +1873,7 @@ else
 #include "confdefs.h"
 
 int
-main ()
+main (void)
 {
 
   ;
@@ -1953,7 +1953,7 @@ do
 #include <stdlib.h>
 $ac_declaration
 int
-main ()
+main (void)
 {
 exit (42);
   ;
@@ -1984,7 +1984,7 @@ rm -f conftest.$ac_objext conftest.$ac_ext
 #include "confdefs.h"
 $ac_declaration
 int
-main ()
+main (void)
 {
 exit (42);
   ;
@@ -2078,7 +2078,7 @@ int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, i
 int argc;
 char **argv;
 int
-main ()
+main (void)
 {
 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   ;
@@ -3663,7 +3663,7 @@ echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
 #include "confdefs.h"
 
 int
-main ()
+main (void)
 {
 
 #ifdef __INTEL_COMPILER
@@ -3714,7 +3714,7 @@ echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
 #include "confdefs.h"
 
 int
-main ()
+main (void)
 {
 
 #ifdef __clang__
@@ -4054,7 +4054,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char debug_malloc ();
 int
-main ()
+main (void)
 {
 debug_malloc ();
   ;
@@ -4286,7 +4286,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char dmalloc_debug ();
 int
-main ()
+main (void)
 {
 dmalloc_debug ();
   ;
@@ -4373,7 +4373,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char strcmp ();
 int
-main ()
+main (void)
 {
 strcmp ();
   ;
@@ -5038,7 +5038,7 @@ choke me
 #endif
 
 int
-main ()
+main (void)
 {
 
 	int test (int i, double x);
@@ -5229,7 +5229,7 @@ else
 		       && LARGE_OFF_T % 2147483647 == 1)
 		      ? 1 : -1];
 int
-main ()
+main (void)
 {
 
   ;
@@ -5305,7 +5305,7 @@ else
 		       && LARGE_OFF_T % 2147483647 == 1)
 		      ? 1 : -1];
 int
-main ()
+main (void)
 {
 
   ;
@@ -5344,7 +5344,7 @@ rm -f conftest.$ac_objext conftest.$ac_ext
 		       && LARGE_OFF_T % 2147483647 == 1)
 		      ? 1 : -1];
 int
-main ()
+main (void)
 {
 
   ;
@@ -5402,7 +5402,7 @@ else
 		       && LARGE_OFF_T % 2147483647 == 1)
 		      ? 1 : -1];
 int
-main ()
+main (void)
 {
 
   ;
@@ -5441,7 +5441,7 @@ rm -f conftest.$ac_objext conftest.$ac_ext
 		       && LARGE_OFF_T % 2147483647 == 1)
 		      ? 1 : -1];
 int
-main ()
+main (void)
 {
 
   ;
@@ -5494,7 +5494,7 @@ else
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 return !fseeko;
   ;
@@ -5525,7 +5525,7 @@ rm -f conftest.$ac_objext conftest.$ac_ext
 #define _LARGEFILE_SOURCE 1
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 return !fseeko;
   ;
@@ -5577,7 +5577,7 @@ else
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 return fseeko && fseeko (stdin, 0, 0);
   ;
@@ -5640,7 +5640,7 @@ else
 #include <dirent.h>
 
 int
-main ()
+main (void)
 {
 
 		/* if transitional largefile support is setup, this is true */
@@ -5912,7 +5912,7 @@ else
 
 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 int
-main ()
+main (void)
 {
   int i;
   for (i = 0; i < 256; i++)
@@ -6063,7 +6063,7 @@ else
 #include "confdefs.h"
 $ac_includes_default
 int
-main ()
+main (void)
 {
 if ((off_t *) 0)
   return 0;
@@ -6115,7 +6115,7 @@ else
 #include "confdefs.h"
 $ac_includes_default
 int
-main ()
+main (void)
 {
 if ((size_t *) 0)
   return 0;
@@ -6169,7 +6169,7 @@ else
 #include "confdefs.h"
 #include <alloca.h>
 int
-main ()
+main (void)
 {
 char *p = (char *) alloca (2 * sizeof (int));
   ;
@@ -6236,7 +6236,7 @@ char *alloca ();
 #endif
 
 int
-main ()
+main (void)
 {
 char *p = (char *) alloca (1);
   ;
@@ -6334,7 +6334,7 @@ char $ac_func ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -6395,7 +6395,7 @@ else
 #line 6395 "configure"
 #include "confdefs.h"
 int
-find_stack_direction ()
+find_stack_direction (void)
 {
   static char *addr = 0;
   auto char dummy;
@@ -6409,7 +6409,7 @@ find_stack_direction ()
 }
 
 int
-main ()
+main (void)
 {
   $ac_main_return (find_stack_direction () < 0);
 }
@@ -6516,7 +6516,7 @@ char $ac_func ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -6640,7 +6640,7 @@ char *malloc ();
 #endif /* no HAVE_GETPAGESIZE */
 
 int
-main ()
+main (void)
 {
   char *data, *data2, *data3;
   int i, pagesize;
@@ -6855,7 +6855,7 @@ char $ac_func ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -6942,7 +6942,7 @@ if test -n "$cf_searchpath/include" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -7023,7 +7023,7 @@ if test -n "$cf_searchpath/../include" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -7172,7 +7172,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <iconv.h>
 
 int
-main ()
+main (void)
 {
 
 	iconv_t cd = iconv_open("","");
@@ -7214,7 +7214,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <iconv.h>
 
 int
-main ()
+main (void)
 {
 
 	iconv_t cd = iconv_open("","");
@@ -7356,7 +7356,7 @@ echo "${as_me:-configure}:7348: testing ... testing $cf_cv_header_path_iconv ...
 #include <iconv.h>
 
 int
-main ()
+main (void)
 {
 
 	iconv_t cd = iconv_open("","");
@@ -7488,7 +7488,7 @@ echo "${as_me:-configure}:7478: testing ... testing $cf_cv_library_path_iconv ..
 #include <iconv.h>
 
 int
-main ()
+main (void)
 {
 
 	iconv_t cd = iconv_open("","");
@@ -7587,7 +7587,7 @@ size_t iconv();
 #endif
 
 int
-main ()
+main (void)
 {
 
   ;
@@ -7660,7 +7660,7 @@ if test -n "$cf_cv_header_path_iconv" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -7754,7 +7754,7 @@ else
 #include "confdefs.h"
 #include <langinfo.h>
 int
-main ()
+main (void)
 {
 char* cs = nl_langinfo(CODESET);
   ;
@@ -7803,7 +7803,7 @@ else
 #include "confdefs.h"
 #include <locale.h>
 int
-main ()
+main (void)
 {
 return LC_MESSAGES
   ;
@@ -7921,7 +7921,7 @@ cat >conftest.$ac_ext <<_ACEOF
 extern int _nl_msg_cat_cntr;
 
 int
-main ()
+main (void)
 {
 
 	bindtextdomain ("", "");
@@ -7964,7 +7964,7 @@ cat >conftest.$ac_ext <<_ACEOF
 extern int _nl_msg_cat_cntr;
 
 int
-main ()
+main (void)
 {
 
 	bindtextdomain ("", "");
@@ -8107,7 +8107,7 @@ echo "${as_me:-configure}:8099: testing ... testing $cf_cv_header_path_intl ..."
 extern int _nl_msg_cat_cntr;
 
 int
-main ()
+main (void)
 {
 
 	bindtextdomain ("", "");
@@ -8240,7 +8240,7 @@ echo "${as_me:-configure}:8230: testing ... testing $cf_cv_library_path_intl ...
 extern int _nl_msg_cat_cntr;
 
 int
-main ()
+main (void)
 {
 
 	bindtextdomain ("", "");
@@ -8351,7 +8351,7 @@ if test -n "$cf_cv_header_path_intl" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -8461,7 +8461,7 @@ char $ac_func ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -9228,7 +9228,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include "confdefs.h"
 #include <sys/types.h>
 int
-main ()
+main (void)
 {
 
 #ifndef _XOPEN_SOURCE
@@ -9261,7 +9261,7 @@ cf_save="$CPPFLAGS"
 #include "confdefs.h"
 #include <sys/types.h>
 int
-main ()
+main (void)
 {
 
 #ifdef _XOPEN_SOURCE
@@ -9313,7 +9313,7 @@ CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
 #include "confdefs.h"
 #include <sys/types.h>
 int
-main ()
+main (void)
 {
 
 #ifdef _DEFAULT_SOURCE
@@ -9383,7 +9383,7 @@ echo "${as_me:-configure}:9379: testing if the symbol is already defined go no f
 #include "confdefs.h"
 #include <sys/types.h>
 int
-main ()
+main (void)
 {
 
 #ifndef _POSIX_C_SOURCE
@@ -9428,7 +9428,7 @@ cf_want_posix_source=no
 #include "confdefs.h"
 #include <sys/types.h>
 int
-main ()
+main (void)
 {
 
 #ifdef _POSIX_SOURCE
@@ -9471,7 +9471,7 @@ echo "${as_me:-configure}:9467: testing if the second compile does not leave our
 #include "confdefs.h"
 #include <sys/types.h>
 int
-main ()
+main (void)
 {
 
 #ifndef _POSIX_C_SOURCE
@@ -9660,7 +9660,7 @@ else
 #include <sys/types.h>
 
 int
-main ()
+main (void)
 {
 
 #ifndef _XOPEN_SOURCE
@@ -9697,7 +9697,7 @@ cf_save="$CPPFLAGS"
 #include <sys/types.h>
 
 int
-main ()
+main (void)
 {
 
 #ifdef _XOPEN_SOURCE
@@ -9873,7 +9873,7 @@ echo "${as_me:-configure}:9869: testing if the symbol is already defined go no f
 #include "confdefs.h"
 #include <sys/types.h>
 int
-main ()
+main (void)
 {
 
 #ifndef _POSIX_C_SOURCE
@@ -9918,7 +9918,7 @@ cf_want_posix_source=no
 #include "confdefs.h"
 #include <sys/types.h>
 int
-main ()
+main (void)
 {
 
 #ifdef _POSIX_SOURCE
@@ -9961,7 +9961,7 @@ echo "${as_me:-configure}:9957: testing if the second compile does not leave our
 #include "confdefs.h"
 #include <sys/types.h>
 int
-main ()
+main (void)
 {
 
 #ifndef _POSIX_C_SOURCE
@@ -10226,7 +10226,7 @@ echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
 #include "confdefs.h"
 #include <stdlib.h>
 int
-main ()
+main (void)
 {
 
 #ifndef _XOPEN_SOURCE
@@ -10264,7 +10264,7 @@ echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
 #include "confdefs.h"
 #include <stdlib.h>
 int
-main ()
+main (void)
 {
 
 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
@@ -10315,7 +10315,7 @@ else
 #include <sys/types.h>
 
 int
-main ()
+main (void)
 {
 
 #ifndef _XOPEN_SOURCE
@@ -10352,7 +10352,7 @@ cf_save="$CPPFLAGS"
 #include <sys/types.h>
 
 int
-main ()
+main (void)
 {
 
 #ifdef _XOPEN_SOURCE
@@ -10519,7 +10519,7 @@ else
 #include <sys/signal.h>
 
 int
-main ()
+main (void)
 {
 int x = SIGWINCH
   ;
@@ -10553,7 +10553,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <sys/signal.h>
 
 int
-main ()
+main (void)
 {
 int x = SIGWINCH
   ;
@@ -10609,7 +10609,7 @@ do
 #include <sys/signal.h>
 
 int
-main ()
+main (void)
 {
 
 #if SIGWINCH != $cf_sigwinch
@@ -10774,7 +10774,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello world");
   ;
@@ -10965,7 +10965,7 @@ if test -n "$cf_searchpath/include" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -11046,7 +11046,7 @@ if test -n "$cf_searchpath/../include" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -11186,7 +11186,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <stdio.h>
 
 int
-main ()
+main (void)
 {
 
       Raccept((char *)0)
@@ -11225,7 +11225,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <stdio.h>
 
 int
-main ()
+main (void)
 {
 
       Raccept((char *)0)
@@ -11364,7 +11364,7 @@ echo "${as_me:-configure}:11357: testing ... testing $cf_cv_header_path_socks ..
 #include <stdio.h>
 
 int
-main ()
+main (void)
 {
 
       Raccept((char *)0)
@@ -11493,7 +11493,7 @@ echo "${as_me:-configure}:11484: testing ... testing $cf_cv_library_path_socks .
 #include <stdio.h>
 
 int
-main ()
+main (void)
 {
 
       Raccept((char *)0)
@@ -11580,7 +11580,7 @@ if test -n "$cf_cv_header_path_socks" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -11763,7 +11763,7 @@ if test -n "$cf_searchpath/include" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -11844,7 +11844,7 @@ if test -n "$cf_searchpath/../include" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -12001,7 +12001,7 @@ cat >conftest.$ac_ext <<_ACEOF
 
 #include <socks.h>
 int
-main ()
+main (void)
 {
 
 	Rinit((char *)0)
@@ -12035,7 +12035,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include "confdefs.h"
 #include <socks.h>
 int
-main ()
+main (void)
 {
 SOCKSinit((char *)0)
   ;
@@ -12129,7 +12129,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #define INCLUDE_PROTOTYPES
 #include <socks.h>
 int
-main ()
+main (void)
 {
 
 	init((char *)0)
@@ -12274,7 +12274,7 @@ LIBS="$cf_add_libs"
 #endif
 
 int
-main ()
+main (void)
 {
 
 	char buffer[1024];
@@ -12333,7 +12333,7 @@ char $ac_func ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -12396,7 +12396,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char gethostname ();
 int
-main ()
+main (void)
 {
 gethostname ();
   ;
@@ -12460,7 +12460,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char gethostname ();
 int
-main ()
+main (void)
 {
 gethostname ();
   ;
@@ -12524,7 +12524,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include "confdefs.h"
 
 int
-main ()
+main (void)
 {
 main ();
   ;
@@ -12584,7 +12584,7 @@ char $ac_func ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -12647,7 +12647,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char socket ();
 int
-main ()
+main (void)
 {
 socket ();
   ;
@@ -12711,7 +12711,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char socket ();
 int
-main ()
+main (void)
 {
 socket ();
   ;
@@ -12789,7 +12789,7 @@ char $ac_func ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -12852,7 +12852,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char gethostbyname ();
 int
-main ()
+main (void)
 {
 gethostbyname ();
   ;
@@ -12926,7 +12926,7 @@ char $ac_func ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -12989,7 +12989,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char inet_ntoa ();
 int
-main ()
+main (void)
 {
 inet_ntoa ();
   ;
@@ -13063,7 +13063,7 @@ char $ac_func ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -13126,7 +13126,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char gethostbyname ();
 int
-main ()
+main (void)
 {
 gethostbyname ();
   ;
@@ -13200,7 +13200,7 @@ char $ac_func ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -13263,7 +13263,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char strcasecmp ();
 int
-main ()
+main (void)
 {
 strcasecmp ();
   ;
@@ -13382,7 +13382,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #endif
 
 int
-main ()
+main (void)
 {
 inet_aton(0, (struct in_addr *)0)
   ;
@@ -13452,7 +13452,7 @@ else
 #endif
 
 int
-main ()
+main (void)
 {
 inet_addr(0)
   ;
@@ -13501,7 +13501,7 @@ else
 #include <arpa/inet.h>
 
 int
-main ()
+main (void)
 {
 inet_addr(0)
   ;
@@ -13752,7 +13752,7 @@ if test -n "$cf_searchpath/include" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -13833,7 +13833,7 @@ if test -n "$cf_searchpath/../include" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -14172,7 +14172,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char dlsym ();
 int
-main ()
+main (void)
 {
 dlsym ();
   ;
@@ -14236,7 +14236,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #endif
 
 int
-main ()
+main (void)
 {
 
 #ifdef USE_GNUTLS_FUNCS
@@ -14288,7 +14288,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #endif
 
 int
-main ()
+main (void)
 {
 
 #ifdef USE_GNUTLS_FUNCS
@@ -14440,7 +14440,7 @@ echo "${as_me:-configure}:14424: testing ... testing $cf_cv_header_path_ssl ..."
 #endif
 
 int
-main ()
+main (void)
 {
 
 #ifdef USE_GNUTLS_FUNCS
@@ -14509,7 +14509,7 @@ echo "${as_me:-configure}:14489: testing Searching for ssl library in FIND_LINKA
 #endif
 
 int
-main ()
+main (void)
 {
 
 #ifdef USE_GNUTLS_FUNCS
@@ -14639,7 +14639,7 @@ echo "${as_me:-configure}:14621: testing ... testing $cf_cv_library_path_ssl ...
 #endif
 
 int
-main ()
+main (void)
 {
 
 #ifdef USE_GNUTLS_FUNCS
@@ -14789,7 +14789,7 @@ if test -n "$cf_cv_header_path_ssl" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -14893,7 +14893,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #endif
 
 int
-main ()
+main (void)
 {
 X509_verify_cert_error_string(X509_STORE_CTX_get_error(NULL))
   ;
@@ -14975,7 +14975,7 @@ if test -n "$cf_searchpath/include" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -15056,7 +15056,7 @@ if test -n "$cf_searchpath/../include" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -15388,7 +15388,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #endif
 
 int
-main ()
+main (void)
 {
 
 #ifdef USE_GNUTLS_FUNCS
@@ -15440,7 +15440,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #endif
 
 int
-main ()
+main (void)
 {
 
 #ifdef USE_GNUTLS_FUNCS
@@ -15592,7 +15592,7 @@ echo "${as_me:-configure}:15576: testing ... testing $cf_cv_header_path_gnutls .
 #endif
 
 int
-main ()
+main (void)
 {
 
 #ifdef USE_GNUTLS_FUNCS
@@ -15734,7 +15734,7 @@ echo "${as_me:-configure}:15716: testing ... testing $cf_cv_library_path_gnutls
 #endif
 
 int
-main ()
+main (void)
 {
 
 #ifdef USE_GNUTLS_FUNCS
@@ -15843,7 +15843,7 @@ if test -n "$cf_cv_header_path_gnutls" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -15968,7 +15968,7 @@ char $ac_func ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -16034,7 +16034,7 @@ char gnutls_rnd ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -16122,7 +16122,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #endif
 
 int
-main ()
+main (void)
 {
 X509_verify_cert_error_string(X509_STORE_CTX_get_error(NULL))
   ;
@@ -16203,7 +16203,7 @@ if test -n "$cf_searchpath/include" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -16284,7 +16284,7 @@ if test -n "$cf_searchpath/../include" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -16616,7 +16616,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #endif
 
 int
-main ()
+main (void)
 {
 
 #ifdef USE_GNUTLS_FUNCS
@@ -16668,7 +16668,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #endif
 
 int
-main ()
+main (void)
 {
 
 #ifdef USE_GNUTLS_FUNCS
@@ -16820,7 +16820,7 @@ echo "${as_me:-configure}:16804: testing ... testing $cf_cv_header_path_gnutls .
 #endif
 
 int
-main ()
+main (void)
 {
 
 #ifdef USE_GNUTLS_FUNCS
@@ -16962,7 +16962,7 @@ echo "${as_me:-configure}:16944: testing ... testing $cf_cv_library_path_gnutls
 #endif
 
 int
-main ()
+main (void)
 {
 
 #ifdef USE_GNUTLS_FUNCS
@@ -17071,7 +17071,7 @@ if test -n "$cf_cv_header_path_gnutls" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -17196,7 +17196,7 @@ char $ac_func ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -17262,7 +17262,7 @@ char gnutls_rnd ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -17344,7 +17344,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char SSL_connect ();
 int
-main ()
+main (void)
 {
 SSL_connect ();
   ;
@@ -17412,7 +17412,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char SSL_connect ();
 int
-main ()
+main (void)
 {
 SSL_connect ();
   ;
@@ -17494,7 +17494,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #endif
 
 int
-main ()
+main (void)
 {
 X509_verify_cert_error_string(X509_STORE_CTX_get_error(NULL))
   ;
@@ -17571,7 +17571,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char SSL_get_version ();
 int
-main ()
+main (void)
 {
 SSL_get_version ();
   ;
@@ -17777,7 +17777,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <stdio.h>
 #include <nss_compat_ossl/nss_compat_ossl.h>
 int
-main ()
+main (void)
 {
 SSL_shutdown((SSL *)0)
   ;
@@ -17826,7 +17826,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #endif
 
 int
-main ()
+main (void)
 {
 SSL_shutdown((SSL *)0)
   ;
@@ -18081,7 +18081,7 @@ if test "$cf_ipv6lib" != "none"; then
 #include <netinet/in.h>
 #include <netinet/ip6.h>
 int
-main ()
+main (void)
 {
 getaddrinfo(0, 0, 0, 0)
   ;
@@ -18220,7 +18220,7 @@ if test -n "$cf_incdir" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -18303,7 +18303,7 @@ char getaddrinfo ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -18357,7 +18357,7 @@ echo $ECHO_N "checking for getaddrinfo in -l$cf_ipv6lib... $ECHO_C" >&6
 #include <netinet/in.h>
 #include <netinet/ip6.h>
 int
-main ()
+main (void)
 {
 getaddrinfo(0, 0, 0, 0)
   ;
@@ -18463,7 +18463,7 @@ echo $ECHO_N "checking for -l$cf_ipv6lib in $cf_libdir... $ECHO_C" >&6
 #include <netinet/in.h>
 #include <netinet/ip6.h>
 int
-main ()
+main (void)
 {
 getaddrinfo(0, 0, 0, 0)
   ;
@@ -18533,7 +18533,7 @@ else
 
 #define expect(a,b) if (strcmp(a,b) != 0) goto bad
 
-int main()
+int main(void)
 {
    int passive, gaierr, inet4 = 0, inet6 = 0;
    struct addrinfo hints, *ai, *aitop;
@@ -18762,7 +18762,7 @@ if test -n "$cf_cv_curses_dir/include" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -18897,7 +18897,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include "confdefs.h"
 #include <${cf_header}>
 int
-main ()
+main (void)
 {
 initscr(); tgoto("?", 0,0)
   ;
@@ -19009,7 +19009,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <$cf_test>
 
 int
-main ()
+main (void)
 {
 int x = auto_left_margin
   ;
@@ -19118,7 +19118,7 @@ else
 
 #include <${cf_cv_ncurses_header:-curses.h}>
 #include <stdio.h>
-int main()
+int main(void)
 {
 	FILE *fp = fopen("$cf_tempfile", "w");
 #ifdef NCURSES_VERSION
@@ -19174,7 +19174,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include "confdefs.h"
 #include <${cf_cv_ncurses_header:-curses.h}>
 int
-main ()
+main (void)
 {
 initscr(); tgoto("?", 0,0)
   ;
@@ -19225,7 +19225,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char tgoto ();
 int
-main ()
+main (void)
 {
 tgoto ();
   ;
@@ -19302,7 +19302,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char initscr ();
 int
-main ()
+main (void)
 {
 initscr ();
   ;
@@ -19373,7 +19373,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char initscr ();
 int
-main ()
+main (void)
 {
 initscr ();
   ;
@@ -19617,7 +19617,7 @@ char tgoto ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -19680,7 +19680,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char tgoto ();
 int
-main ()
+main (void)
 {
 tgoto ();
   ;
@@ -19746,7 +19746,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char initscr ();
 int
-main ()
+main (void)
 {
 initscr ();
   ;
@@ -19795,7 +19795,7 @@ echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
 #include "confdefs.h"
 #include <${cf_cv_ncurses_header:-curses.h}>
 int
-main ()
+main (void)
 {
 initscr()
   ;
@@ -19836,7 +19836,7 @@ echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries..
 #include "confdefs.h"
 #include <${cf_cv_ncurses_header:-curses.h}>
 int
-main ()
+main (void)
 {
 initscr(); tgoto((char *)0, 0, 0);
   ;
@@ -19866,7 +19866,7 @@ cat conftest.$ac_ext >&5
 #include "confdefs.h"
 #include <${cf_cv_ncurses_header:-curses.h}>
 int
-main ()
+main (void)
 {
 initscr()
   ;
@@ -19914,7 +19914,7 @@ else
 
 #include <${cf_cv_ncurses_header:-curses.h}>
 int
-main ()
+main (void)
 {
 
 #if defined(wbkgdset) && defined(clearok) && defined(getbkgd)
@@ -19947,7 +19947,7 @@ if { (eval echo "$as_me:19931: \"$ac_compile\"") >&5
 #define CURS_PERFORMANCE
 #include <${cf_cv_ncurses_header:-curses.h}>
 int
-main ()
+main (void)
 {
 
 #if defined(wbkgdset) && defined(clearok) && defined(getbkgd)
@@ -20004,7 +20004,7 @@ else
 
 #include <${cf_cv_ncurses_header:-curses.h}>
 int
-main ()
+main (void)
 {
 touchline(stdscr, 1,2,3);
   ;
@@ -20033,7 +20033,7 @@ cat >conftest.$ac_ext <<_ACEOF
 
 #include <${cf_cv_ncurses_header:-curses.h}>
 int
-main ()
+main (void)
 {
 touchline(stdscr, 1,2);
   ;
@@ -20097,7 +20097,7 @@ else
 
 #include <stdlib.h>
 int
-main ()
+main (void)
 {
 putwc(0,0);
   ;
@@ -20136,7 +20136,7 @@ cat >conftest.$ac_ext <<_ACEOF
 
 #include <libutf8.h>
 int
-main ()
+main (void)
 {
 putwc(0,0);
   ;
@@ -20172,7 +20172,7 @@ cat >conftest.$ac_ext <<_ACEOF
 
 #include <libutf8.h>
 int
-main ()
+main (void)
 {
 putwc(0,0);
   ;
@@ -20308,7 +20308,7 @@ echo "${as_me:-configure}:20302: testing ... testing $cf_cv_header_path_utf8 ...
 
 #include <libutf8.h>
 int
-main ()
+main (void)
 {
 putwc(0,0);
   ;
@@ -20434,7 +20434,7 @@ echo "${as_me:-configure}:20426: testing ... testing $cf_cv_library_path_utf8 ..
 
 #include <libutf8.h>
 int
-main ()
+main (void)
 {
 putwc(0,0);
   ;
@@ -20537,7 +20537,7 @@ if test -n "$cf_cv_header_path_utf8" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -20673,7 +20673,7 @@ LIBS="$cf_add_libs"
 #include "confdefs.h"
 #include <${cf_cv_ncurses_header:-curses.h}>
 int
-main ()
+main (void)
 {
 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
   ;
@@ -20876,7 +20876,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include "confdefs.h"
 #include <${cf_header}>
 int
-main ()
+main (void)
 {
 initscr(); tgoto("?", 0,0)
   ;
@@ -21010,7 +21010,7 @@ if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -21080,7 +21080,7 @@ else
 
 #include <$cf_header>
 int
-main ()
+main (void)
 {
 
 #ifdef NCURSES_VERSION
@@ -21252,7 +21252,7 @@ if test -n "$cf_incdir" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -21314,7 +21314,7 @@ fi
 
 #include <$cf_header>
 int
-main ()
+main (void)
 {
 
 #ifdef NCURSES_VERSION
@@ -21405,7 +21405,7 @@ if test -n "$cf_1st_incdir" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -21512,7 +21512,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <$cf_test>
 
 int
-main ()
+main (void)
 {
 int x = auto_left_margin
   ;
@@ -21627,7 +21627,7 @@ else
 
 #include <${cf_cv_ncurses_header:-curses.h}>
 #include <stdio.h>
-int main()
+int main(void)
 {
 	FILE *fp = fopen("$cf_tempfile", "w");
 #ifdef NCURSES_VERSION
@@ -21701,7 +21701,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char Gpm_Open ();
 int
-main ()
+main (void)
 {
 Gpm_Open ();
   ;
@@ -21751,7 +21751,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char initscr ();
 int
-main ()
+main (void)
 {
 initscr ();
   ;
@@ -21813,7 +21813,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char tgoto ();
 int
-main ()
+main (void)
 {
 tgoto ();
   ;
@@ -21911,7 +21911,7 @@ char initscr ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -21961,7 +21961,7 @@ echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
 #include "confdefs.h"
 #include <${cf_cv_ncurses_header:-curses.h}>
 int
-main ()
+main (void)
 {
 initscr()
   ;
@@ -22063,7 +22063,7 @@ echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
 #include "confdefs.h"
 #include <${cf_cv_ncurses_header:-curses.h}>
 int
-main ()
+main (void)
 {
 initscr()
   ;
@@ -22126,7 +22126,7 @@ echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS..
 #include "confdefs.h"
 #include <${cf_cv_ncurses_header:-curses.h}>
 int
-main ()
+main (void)
 {
 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
   ;
@@ -22212,7 +22212,7 @@ LIBS="$cf_add_libs"
 #include "confdefs.h"
 #include <${cf_cv_ncurses_header:-curses.h}>
 int
-main ()
+main (void)
 {
 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
   ;
@@ -22415,7 +22415,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include "confdefs.h"
 #include <${cf_header}>
 int
-main ()
+main (void)
 {
 initscr(); tgoto("?", 0,0)
   ;
@@ -22549,7 +22549,7 @@ if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -22619,7 +22619,7 @@ else
 
 #include <$cf_header>
 int
-main ()
+main (void)
 {
 
 #ifdef NCURSES_VERSION
@@ -22791,7 +22791,7 @@ if test -n "$cf_incdir" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -22853,7 +22853,7 @@ fi
 
 #include <$cf_header>
 int
-main ()
+main (void)
 {
 
 #ifdef NCURSES_VERSION
@@ -22944,7 +22944,7 @@ if test -n "$cf_1st_incdir" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -23051,7 +23051,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <$cf_test>
 
 int
-main ()
+main (void)
 {
 int x = auto_left_margin
   ;
@@ -23166,7 +23166,7 @@ else
 
 #include <${cf_cv_ncurses_header:-curses.h}>
 #include <stdio.h>
-int main()
+int main(void)
 {
 	FILE *fp = fopen("$cf_tempfile", "w");
 #ifdef NCURSES_VERSION
@@ -23240,7 +23240,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char Gpm_Open ();
 int
-main ()
+main (void)
 {
 Gpm_Open ();
   ;
@@ -23290,7 +23290,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char initscr ();
 int
-main ()
+main (void)
 {
 initscr ();
   ;
@@ -23352,7 +23352,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char tgoto ();
 int
-main ()
+main (void)
 {
 tgoto ();
   ;
@@ -23450,7 +23450,7 @@ char initscr ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -23500,7 +23500,7 @@ echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
 #include "confdefs.h"
 #include <${cf_cv_ncurses_header:-curses.h}>
 int
-main ()
+main (void)
 {
 initscr()
   ;
@@ -23602,7 +23602,7 @@ echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
 #include "confdefs.h"
 #include <${cf_cv_ncurses_header:-curses.h}>
 int
-main ()
+main (void)
 {
 initscr()
   ;
@@ -23665,7 +23665,7 @@ echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS..
 #include "confdefs.h"
 #include <${cf_cv_ncurses_header:-curses.h}>
 int
-main ()
+main (void)
 {
 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
   ;
@@ -23733,7 +23733,7 @@ else
 #include "confdefs.h"
 #include <slang.h>
 int
-main ()
+main (void)
 {
 printf("%s\n", SLANG_VERSION)
   ;
@@ -23900,7 +23900,7 @@ if test -n "$cf_incdir" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -23970,7 +23970,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include "confdefs.h"
 
 int
-main ()
+main (void)
 {
 char *x=(char*)tgoto("",0,0)
   ;
@@ -23994,7 +23994,7 @@ if { (eval echo "$as_me:23981: \"$ac_link\"") >&5
 #include "confdefs.h"
 
 int
-main ()
+main (void)
 {
 int x=tigetstr("")
   ;
@@ -24044,7 +24044,7 @@ echo $ECHO_N "checking for $cf_func in -l$cf_lib... $ECHO_C" >&6
 #include "confdefs.h"
 
 int
-main ()
+main (void)
 {
 int x=$cf_func("")
   ;
@@ -24106,7 +24106,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char initscr ();
 int
-main ()
+main (void)
 {
 initscr ();
   ;
@@ -24175,7 +24175,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char tgoto ();
 int
-main ()
+main (void)
 {
 tgoto ();
   ;
@@ -24258,7 +24258,7 @@ char acos ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -24318,7 +24318,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char acos ();
 int
-main ()
+main (void)
 {
 acos ();
   ;
@@ -24393,7 +24393,7 @@ char v_init ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -24443,7 +24443,7 @@ echo $ECHO_N "checking for v_init in -lvideo... $ECHO_C" >&6
 #include "confdefs.h"
 #include <sys/video.h>
 int
-main ()
+main (void)
 {
 v_init()
   ;
@@ -24545,7 +24545,7 @@ echo $ECHO_N "checking for -lvideo in $cf_libdir... $ECHO_C" >&6
 #include "confdefs.h"
 #include <sys/video.h>
 int
-main ()
+main (void)
 {
 v_init()
   ;
@@ -24617,7 +24617,7 @@ char SLtt_get_screen_size ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -24667,7 +24667,7 @@ echo $ECHO_N "checking for SLtt_get_screen_size in -lslang... $ECHO_C" >&6
 #include "confdefs.h"
 #include <slang.h>
 int
-main ()
+main (void)
 {
 SLtt_get_screen_size()
   ;
@@ -24769,7 +24769,7 @@ echo $ECHO_N "checking for -lslang in $cf_libdir... $ECHO_C" >&6
 #include "confdefs.h"
 #include <slang.h>
 int
-main ()
+main (void)
 {
 SLtt_get_screen_size()
   ;
@@ -24829,7 +24829,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include "confdefs.h"
 #include <slang.h>
 int
-main ()
+main (void)
 {
 SLtt_get_screen_size()
   ;
@@ -24873,7 +24873,7 @@ else
 #include "confdefs.h"
 #include <slang.h>
 int
-main ()
+main (void)
 {
 printf("%s\n", SLANG_VERSION)
   ;
@@ -25040,7 +25040,7 @@ if test -n "$cf_incdir" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -25110,7 +25110,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include "confdefs.h"
 
 int
-main ()
+main (void)
 {
 char *x=(char*)tgoto("",0,0)
   ;
@@ -25134,7 +25134,7 @@ if { (eval echo "$as_me:25121: \"$ac_link\"") >&5
 #include "confdefs.h"
 
 int
-main ()
+main (void)
 {
 int x=tigetstr("")
   ;
@@ -25184,7 +25184,7 @@ echo $ECHO_N "checking for $cf_func in -l$cf_lib... $ECHO_C" >&6
 #include "confdefs.h"
 
 int
-main ()
+main (void)
 {
 int x=$cf_func("")
   ;
@@ -25246,7 +25246,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char initscr ();
 int
-main ()
+main (void)
 {
 initscr ();
   ;
@@ -25315,7 +25315,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char tgoto ();
 int
-main ()
+main (void)
 {
 tgoto ();
   ;
@@ -25398,7 +25398,7 @@ char acos ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -25458,7 +25458,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char acos ();
 int
-main ()
+main (void)
 {
 acos ();
   ;
@@ -25533,7 +25533,7 @@ char v_init ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -25583,7 +25583,7 @@ echo $ECHO_N "checking for v_init in -lvideo... $ECHO_C" >&6
 #include "confdefs.h"
 #include <sys/video.h>
 int
-main ()
+main (void)
 {
 v_init()
   ;
@@ -25685,7 +25685,7 @@ echo $ECHO_N "checking for -lvideo in $cf_libdir... $ECHO_C" >&6
 #include "confdefs.h"
 #include <sys/video.h>
 int
-main ()
+main (void)
 {
 v_init()
   ;
@@ -25757,7 +25757,7 @@ char SLtt_get_screen_size ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -25807,7 +25807,7 @@ echo $ECHO_N "checking for SLtt_get_screen_size in -lslang2... $ECHO_C" >&6
 #include "confdefs.h"
 #include <slang.h>
 int
-main ()
+main (void)
 {
 SLtt_get_screen_size()
   ;
@@ -25909,7 +25909,7 @@ echo $ECHO_N "checking for -lslang2 in $cf_libdir... $ECHO_C" >&6
 #include "confdefs.h"
 #include <slang.h>
 int
-main ()
+main (void)
 {
 SLtt_get_screen_size()
   ;
@@ -25969,7 +25969,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include "confdefs.h"
 #include <slang.h>
 int
-main ()
+main (void)
 {
 SLtt_get_screen_size()
   ;
@@ -26019,7 +26019,7 @@ else
 #include "confdefs.h"
 #include <slang.h>
 int
-main ()
+main (void)
 {
 SLtt_get_screen_size()
   ;
@@ -26050,7 +26050,7 @@ cat conftest.$ac_ext >&5
 #define UTF8
 #include <slang.h>
 int
-main ()
+main (void)
 {
 SLtt_get_screen_size()
   ;
@@ -26102,7 +26102,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include "confdefs.h"
 #include <slang.h>
 int
-main ()
+main (void)
 {
 
 #ifdef REAL_UNIX_SYSTEM
@@ -26155,7 +26155,7 @@ else
 #include <slang.h>
 
 int
-main ()
+main (void)
 {
 if ((SLsmg_Color_Type *) 0)
   return 0;
@@ -26212,7 +26212,7 @@ else
 #include <slang.h>
 
 int
-main ()
+main (void)
 {
 if ((SLtt_Char_Type *) 0)
   return 0;
@@ -26273,7 +26273,7 @@ else
 #include "confdefs.h"
 #include <${cf_cv_ncurses_header:-curses.h}>
 int
-main ()
+main (void)
 {
 chtype foo
   ;
@@ -26319,7 +26319,7 @@ else
 #include "confdefs.h"
 #include <${cf_cv_ncurses_header:-curses.h}>
 int
-main ()
+main (void)
 {
 chtype foo; long x = foo
   ;
@@ -26870,7 +26870,7 @@ else
 
 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 int
-main ()
+main (void)
 {
   int i;
   for (i = 0; i < 256; i++)
@@ -26925,7 +26925,7 @@ else
 #include <time.h>
 
 int
-main ()
+main (void)
 {
 if ((struct tm *) 0)
 return 0;
@@ -26978,7 +26978,7 @@ else
 #include <$ac_hdr>
 
 int
-main ()
+main (void)
 {
 if ((DIR *) 0)
 return 0;
@@ -27038,7 +27038,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char opendir ();
 int
-main ()
+main (void)
 {
 opendir ();
   ;
@@ -27092,7 +27092,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char opendir ();
 int
-main ()
+main (void)
 {
 opendir ();
   ;
@@ -27210,7 +27210,7 @@ else
 #include <termios.h>
 #endif
 int
-main ()
+main (void)
 {
 putchar (0x0a)
   ;
@@ -27258,7 +27258,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <sys/types.h>
 #include <signal.h>
 int
-main ()
+main (void)
 {
 struct sigaction act;
 	act.sa_handler = SIG_DFL;
@@ -27474,7 +27474,7 @@ else
 #include "confdefs.h"
 $cf_wait_headers
 int
-main ()
+main (void)
 {
 int x;
 	 int y = WEXITSTATUS(x);
@@ -27509,7 +27509,7 @@ cat conftest.$ac_ext >&5
 #include "confdefs.h"
 $cf_wait_headers
 int
-main ()
+main (void)
 {
 union wait x;
 #ifdef WEXITSTATUS
@@ -27569,7 +27569,7 @@ else
 #include "confdefs.h"
 $cf_wait_headers
 int
-main ()
+main (void)
 {
 union wait x; wait(&x)
   ;
@@ -27616,7 +27616,7 @@ else
 #include "confdefs.h"
 $cf_wait_headers
 int
-main ()
+main (void)
 {
 union wait x; waitpid(0, &x, 0)
   ;
@@ -27706,7 +27706,7 @@ else
 #define MAX(x, y) ((x) > (y) ? (x) : (y))
 
 int
-main ()
+main (void)
 {
   gid_t gidset[NGID];
   int i, n;
@@ -27776,7 +27776,7 @@ else
 #include "confdefs.h"
 $ac_includes_default
 int
-main ()
+main (void)
 {
 if ((off_t *) 0)
   return 0;
@@ -27828,7 +27828,7 @@ else
 #include "confdefs.h"
 $ac_includes_default
 int
-main ()
+main (void)
 {
 if ((pid_t *) 0)
   return 0;
@@ -27914,7 +27914,7 @@ else
 #include "confdefs.h"
 $ac_includes_default
 int
-main ()
+main (void)
 {
 if ((mode_t *) 0)
   return 0;
@@ -27966,7 +27966,7 @@ else
 #include "confdefs.h"
 $ac_includes_default
 int
-main ()
+main (void)
 {
 if ((ssize_t *) 0)
   return 0;
@@ -28025,7 +28025,7 @@ else
 #include <sys/socket.h>
 
 int
-main ()
+main (void)
 {
 if ((socklen_t *) 0)
   return 0;
@@ -28135,7 +28135,7 @@ else
 #endif
 
 int
-main ()
+main (void)
 {
 
 	struct tm foo;
@@ -28182,7 +28182,7 @@ else
 #include "confdefs.h"
 $ac_includes_default
 int
-main ()
+main (void)
 {
 if ((int *) 0)
   return 0;
@@ -28228,7 +28228,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include "confdefs.h"
 $ac_includes_default
 int
-main ()
+main (void)
 {
 int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
   ;
@@ -28254,7 +28254,7 @@ if { (eval echo "$as_me:28239: \"$ac_compile\"") >&5
 #include "confdefs.h"
 $ac_includes_default
 int
-main ()
+main (void)
 {
 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
   ;
@@ -28291,7 +28291,7 @@ ac_hi=-1 ac_mid=-1
 #include "confdefs.h"
 $ac_includes_default
 int
-main ()
+main (void)
 {
 int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
   ;
@@ -28328,7 +28328,7 @@ while test "x$ac_lo" != "x$ac_hi"; do
 #include "confdefs.h"
 $ac_includes_default
 int
-main ()
+main (void)
 {
 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
   ;
@@ -28367,7 +28367,7 @@ else
 #include "confdefs.h"
 $ac_includes_default
 int
-main ()
+main (void)
 {
 FILE *f = fopen ("conftest.val", "w");
 if (!f)
@@ -28431,7 +28431,7 @@ else
 #include "confdefs.h"
 $ac_includes_default
 int
-main ()
+main (void)
 {
 if ((long *) 0)
   return 0;
@@ -28477,7 +28477,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include "confdefs.h"
 $ac_includes_default
 int
-main ()
+main (void)
 {
 int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
   ;
@@ -28503,7 +28503,7 @@ if { (eval echo "$as_me:28488: \"$ac_compile\"") >&5
 #include "confdefs.h"
 $ac_includes_default
 int
-main ()
+main (void)
 {
 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
   ;
@@ -28540,7 +28540,7 @@ ac_hi=-1 ac_mid=-1
 #include "confdefs.h"
 $ac_includes_default
 int
-main ()
+main (void)
 {
 int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
   ;
@@ -28577,7 +28577,7 @@ while test "x$ac_lo" != "x$ac_hi"; do
 #include "confdefs.h"
 $ac_includes_default
 int
-main ()
+main (void)
 {
 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
   ;
@@ -28616,7 +28616,7 @@ else
 #include "confdefs.h"
 $ac_includes_default
 int
-main ()
+main (void)
 {
 FILE *f = fopen ("conftest.val", "w");
 if (!f)
@@ -28680,7 +28680,7 @@ else
 #include "confdefs.h"
 $ac_includes_default
 int
-main ()
+main (void)
 {
 if ((off_t *) 0)
   return 0;
@@ -28726,7 +28726,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include "confdefs.h"
 $ac_includes_default
 int
-main ()
+main (void)
 {
 int _array_ [1 - 2 * !((sizeof (off_t)) >= 0)]
   ;
@@ -28752,7 +28752,7 @@ if { (eval echo "$as_me:28737: \"$ac_compile\"") >&5
 #include "confdefs.h"
 $ac_includes_default
 int
-main ()
+main (void)
 {
 int _array_ [1 - 2 * !((sizeof (off_t)) <= $ac_mid)]
   ;
@@ -28789,7 +28789,7 @@ ac_hi=-1 ac_mid=-1
 #include "confdefs.h"
 $ac_includes_default
 int
-main ()
+main (void)
 {
 int _array_ [1 - 2 * !((sizeof (off_t)) >= $ac_mid)]
   ;
@@ -28826,7 +28826,7 @@ while test "x$ac_lo" != "x$ac_hi"; do
 #include "confdefs.h"
 $ac_includes_default
 int
-main ()
+main (void)
 {
 int _array_ [1 - 2 * !((sizeof (off_t)) <= $ac_mid)]
   ;
@@ -28865,7 +28865,7 @@ else
 #include "confdefs.h"
 $ac_includes_default
 int
-main ()
+main (void)
 {
 FILE *f = fopen ("conftest.val", "w");
 if (!f)
@@ -28929,7 +28929,7 @@ else
 #include "confdefs.h"
 $ac_includes_default
 int
-main ()
+main (void)
 {
 if ((time_t *) 0)
   return 0;
@@ -28975,7 +28975,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include "confdefs.h"
 $ac_includes_default
 int
-main ()
+main (void)
 {
 int _array_ [1 - 2 * !((sizeof (time_t)) >= 0)]
   ;
@@ -29001,7 +29001,7 @@ if { (eval echo "$as_me:28986: \"$ac_compile\"") >&5
 #include "confdefs.h"
 $ac_includes_default
 int
-main ()
+main (void)
 {
 int _array_ [1 - 2 * !((sizeof (time_t)) <= $ac_mid)]
   ;
@@ -29038,7 +29038,7 @@ ac_hi=-1 ac_mid=-1
 #include "confdefs.h"
 $ac_includes_default
 int
-main ()
+main (void)
 {
 int _array_ [1 - 2 * !((sizeof (time_t)) >= $ac_mid)]
   ;
@@ -29075,7 +29075,7 @@ while test "x$ac_lo" != "x$ac_hi"; do
 #include "confdefs.h"
 $ac_includes_default
 int
-main ()
+main (void)
 {
 int _array_ [1 - 2 * !((sizeof (time_t)) <= $ac_mid)]
   ;
@@ -29114,7 +29114,7 @@ else
 #include "confdefs.h"
 $ac_includes_default
 int
-main ()
+main (void)
 {
 FILE *f = fopen ("conftest.val", "w");
 if (!f)
@@ -29178,7 +29178,7 @@ else
 #include "confdefs.h"
 $ac_includes_default
 int
-main ()
+main (void)
 {
 if ((intptr_t *) 0)
   return 0;
@@ -29232,7 +29232,7 @@ else
 #include "confdefs.h"
 #include <alloca.h>
 int
-main ()
+main (void)
 {
 char *p = (char *) alloca (2 * sizeof (int));
   ;
@@ -29299,7 +29299,7 @@ char *alloca ();
 #endif
 
 int
-main ()
+main (void)
 {
 char *p = (char *) alloca (1);
   ;
@@ -29397,7 +29397,7 @@ char $ac_func ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -29458,7 +29458,7 @@ else
 #line 29458 "configure"
 #include "confdefs.h"
 int
-find_stack_direction ()
+find_stack_direction (void)
 {
   static char *addr = 0;
   auto char dummy;
@@ -29472,7 +29472,7 @@ find_stack_direction ()
 }
 
 int
-main ()
+main (void)
 {
   $ac_main_return (find_stack_direction () < 0);
 }
@@ -29579,7 +29579,7 @@ char $ac_func ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -29641,7 +29641,7 @@ else
       # include <unistd.h>
       #endif
       /* Some systems only have a dummy stub for fork() */
-      int main ()
+      int main (void)
       {
         if (fork() < 0)
           $ac_main_return (1);
@@ -29738,7 +29738,7 @@ sparc_address_test (arg) int arg;
 }
 
 int
-main ()
+main (void)
 {
   pid_t parent = getpid ();
   pid_t child;
@@ -29859,7 +29859,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <sys/ioctl.h>
 
 int
-main ()
+main (void)
 {
 
         int ret = ioctl(0, FIONBIO, (char *)0);
@@ -29898,7 +29898,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #endif
 #endif
 int
-main ()
+main (void)
 {
 
         int ret = fcntl(0, F_SETFL, O_NONBLOCK);
@@ -29948,7 +29948,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 remove("dummy")
   ;
@@ -29977,7 +29977,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <stdio.h>
 		int __unlink(name) { return unlink(name); }
 int
-main ()
+main (void)
 {
 remove("dummy")
   ;
@@ -30029,7 +30029,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <sys/types.h>
 #include <sys/stat.h>
 int
-main ()
+main (void)
 {
 lstat(".", (struct stat *)0)
   ;
@@ -30114,7 +30114,7 @@ char $ac_func ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -30186,7 +30186,7 @@ char $ac_func ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -30264,7 +30264,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #endif
 
 int
-main ()
+main (void)
 {
 long seed = 1; $cf_srand_func(seed); seed = $cf_rand_func()
   ;
@@ -30328,7 +30328,7 @@ else
 #endif
 
 int
-main ()
+main (void)
 {
 long x = $cf_cv_rand_max
   ;
@@ -30368,7 +30368,7 @@ echo $ECHO_N "checking if <bsd/stdlib.h> should be included... $ECHO_C" >&6
 #include "confdefs.h"
 #include <bsd/stdlib.h>
 int
-main ()
+main (void)
 {
 void *arc4random(int);
 						void *x = arc4random(1)
@@ -30397,7 +30397,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include "confdefs.h"
 #include <bsd/stdlib.h>
 int
-main ()
+main (void)
 {
 unsigned x = arc4random()
   ;
@@ -30442,7 +30442,7 @@ echo $ECHO_N "checking if <bsd/random.h> should be included... $ECHO_C" >&6
 #include "confdefs.h"
 #include <bsd/random.h>
 int
-main ()
+main (void)
 {
 void *arc4random(int);
 							void *x = arc4random(1)
@@ -30471,7 +30471,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include "confdefs.h"
 #include <bsd/random.h>
 int
-main ()
+main (void)
 {
 unsigned x = arc4random()
   ;
@@ -30561,7 +30561,7 @@ else
 #endif
 
 int
-main ()
+main (void)
 {
 #ifndef $ac_func
 extern	int	$ac_func();
@@ -30595,7 +30595,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #endif
 
 int
-main ()
+main (void)
 {
 #ifndef $ac_func
 int	(*p)() = $ac_func;
@@ -30664,7 +30664,7 @@ else
 #include "confdefs.h"
 #include <string.h>
 int
-main ()
+main (void)
 {
 #ifndef $ac_func
 extern	int	$ac_func();
@@ -30691,7 +30691,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include "confdefs.h"
 #include <string.h>
 int
-main ()
+main (void)
 {
 #ifndef $ac_func
 int	(*p)() = $ac_func;
@@ -30762,7 +30762,7 @@ else
 #include <stdio.h>
 #include <grp.h>
 int
-main ()
+main (void)
 {
 #ifndef $ac_func
 extern	int	$ac_func();
@@ -30791,7 +30791,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <stdio.h>
 #include <grp.h>
 int
-main ()
+main (void)
 {
 #ifndef $ac_func
 int	(*p)() = $ac_func;
@@ -30860,7 +30860,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <${cf_cv_ncurses_header:-curses.h}>
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 int x = TRUE, y = FALSE
   ;
@@ -30919,7 +30919,7 @@ else
 #include <sys/types.h>
 #include <errno.h>
 int
-main ()
+main (void)
 {
 int x = (int) errno
   ;
@@ -30976,7 +30976,7 @@ else
 extern int errno;
 
 int
-main ()
+main (void)
 {
 errno = 2
   ;
@@ -31029,7 +31029,7 @@ if test "$cross_compiling" = yes; then
 #include "confdefs.h"
 #include <errno.h>
 int
-main ()
+main (void)
 {
 errno = 255
   ;
@@ -31061,7 +31061,7 @@ else
 #include "confdefs.h"
 
 #include <errno.h>
-int main()
+int main(void)
 {
 	errno = 255;
 	${cf_cv_main_return:-return}(errno != 255);
@@ -31107,7 +31107,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include "confdefs.h"
 #include <locale.h>
 int
-main ()
+main (void)
 {
 setlocale(LC_ALL, "")
   ;
@@ -31162,7 +31162,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #endif
 
 int
-main ()
+main (void)
 {
 int x = NGROUPS
   ;
@@ -31197,7 +31197,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #endif
 
 int
-main ()
+main (void)
 {
 int x = NGROUPS_MAX
   ;
@@ -31261,7 +31261,7 @@ else
 #include <sys/types.h>
 #include <errno.h>
 int
-main ()
+main (void)
 {
 int x = (int) sys_nerr
   ;
@@ -31318,7 +31318,7 @@ else
 extern int sys_nerr;
 
 int
-main ()
+main (void)
 {
 sys_nerr = 2
   ;
@@ -31376,7 +31376,7 @@ else
 #include <sys/types.h>
 #include <errno.h>
 int
-main ()
+main (void)
 {
 int x = (int) sys_errlist
   ;
@@ -31433,7 +31433,7 @@ else
 extern int sys_errlist;
 
 int
-main ()
+main (void)
 {
 sys_errlist = 2
   ;
@@ -31541,7 +31541,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #endif
 #endif
 int
-main ()
+main (void)
 {
 char *path = _PATH_LASTLOG
   ;
@@ -31601,7 +31601,7 @@ cf_utmp_includes="
 #include "confdefs.h"
 $cf_utmp_includes
 int
-main ()
+main (void)
 {
 struct $cf_header x;
 	 char *name = x.ut_name; /* utmp.h and compatible definitions */
@@ -31633,7 +31633,7 @@ cat conftest.$ac_ext >&5
 #include "confdefs.h"
 $cf_utmp_includes
 int
-main ()
+main (void)
 {
 struct $cf_header x;
 	 char *name = x.ut_user; /* utmpx.h must declare this */
@@ -31695,7 +31695,7 @@ else
 #include <sys/types.h>
 #include <${cf_cv_have_utmp}.h>
 int
-main ()
+main (void)
 {
 struct $cf_cv_have_utmp x; char *y = &x.ut_host[0]
   ;
@@ -31747,7 +31747,7 @@ else
 #include <sys/types.h>
 #include <${cf_cv_have_utmp}.h>
 int
-main ()
+main (void)
 {
 struct $cf_cv_have_utmp x; int y = x.ut_syslen
   ;
@@ -31807,7 +31807,7 @@ for cf_header in ut_name ut_user ; do
 #include "confdefs.h"
 $cf_utmp_includes
 int
-main ()
+main (void)
 {
 struct $cf_cv_have_utmp x;
 	 char *name = x.$cf_header;
@@ -31877,7 +31877,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <sys/types.h>
 #include <${cf_cv_have_utmp}.h>
 int
-main ()
+main (void)
 {
 struct $cf_cv_have_utmp x; long y = x.$cf_result = 0
   ;
@@ -31936,7 +31936,7 @@ else
 #include <sys/types.h>
 #include <${cf_cv_have_utmp}.h>
 int
-main ()
+main (void)
 {
 struct $cf_cv_have_utmp x; long y = x.ut_xtime = 0
   ;
@@ -31966,7 +31966,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <sys/types.h>
 #include <${cf_cv_have_utmp}.h>
 int
-main ()
+main (void)
 {
 struct $cf_cv_have_utmp x; long y = x.ut_tv.tv_sec
   ;
@@ -32029,7 +32029,7 @@ else
 #include <sys/types.h>
 #include <${cf_cv_have_utmp}.h>
 int
-main ()
+main (void)
 {
 struct $cf_cv_have_utmp x; long y = x.ut_session
   ;
@@ -32082,7 +32082,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <sys/types.h>
 #include <${cf_cv_have_utmp}.h>
 int
-main ()
+main (void)
 {
 
 struct $cf_cv_have_utmp x;
@@ -32138,7 +32138,7 @@ else
 extern int h_errno;
 
 int
-main ()
+main (void)
 {
 h_errno = 2
   ;
@@ -32445,7 +32445,7 @@ if test -n "$cf_searchpath/include" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -32526,7 +32526,7 @@ if test -n "$cf_searchpath/../include" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -32675,7 +32675,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <iconv.h>
 
 int
-main ()
+main (void)
 {
 
 	iconv_t cd = iconv_open("","");
@@ -32717,7 +32717,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <iconv.h>
 
 int
-main ()
+main (void)
 {
 
 	iconv_t cd = iconv_open("","");
@@ -32859,7 +32859,7 @@ echo "${as_me:-configure}:32851: testing ... testing $cf_cv_header_path_iconv ..
 #include <iconv.h>
 
 int
-main ()
+main (void)
 {
 
 	iconv_t cd = iconv_open("","");
@@ -32991,7 +32991,7 @@ echo "${as_me:-configure}:32981: testing ... testing $cf_cv_library_path_iconv .
 #include <iconv.h>
 
 int
-main ()
+main (void)
 {
 
 	iconv_t cd = iconv_open("","");
@@ -33090,7 +33090,7 @@ size_t iconv();
 #endif
 
 int
-main ()
+main (void)
 {
 
   ;
@@ -33163,7 +33163,7 @@ if test -n "$cf_cv_header_path_iconv" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -33490,7 +33490,7 @@ if test -n "$cf_searchpath/include" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -33571,7 +33571,7 @@ if test -n "$cf_searchpath/../include" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -33712,7 +33712,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <idna.h>
 
 int
-main ()
+main (void)
 {
 
 	char *output = 0;
@@ -33753,7 +33753,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <idna.h>
 
 int
-main ()
+main (void)
 {
 
 	char *output = 0;
@@ -33894,7 +33894,7 @@ echo "${as_me:-configure}:33886: testing ... testing $cf_cv_header_path_idn ..."
 #include <idna.h>
 
 int
-main ()
+main (void)
 {
 
 	char *output = 0;
@@ -34025,7 +34025,7 @@ echo "${as_me:-configure}:34015: testing ... testing $cf_cv_library_path_idn ...
 #include <idna.h>
 
 int
-main ()
+main (void)
 {
 
 	char *output = 0;
@@ -34113,7 +34113,7 @@ if test -n "$cf_cv_header_path_idn" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -34901,7 +34901,7 @@ if test -n "$cf_searchpath/include" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -34982,7 +34982,7 @@ if test -n "$cf_searchpath/../include" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -35123,7 +35123,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <bzlib.h>
 
 int
-main ()
+main (void)
 {
 
     BZ2_bzopen("name","mode")
@@ -35163,7 +35163,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <bzlib.h>
 
 int
-main ()
+main (void)
 {
 
     BZ2_bzopen("name","mode")
@@ -35303,7 +35303,7 @@ echo "${as_me:-configure}:35295: testing ... testing $cf_cv_header_path_bz2 ..."
 #include <bzlib.h>
 
 int
-main ()
+main (void)
 {
 
     BZ2_bzopen("name","mode")
@@ -35360,7 +35360,7 @@ echo "${as_me:-configure}:35348: testing Searching for bz2 library in FIND_LINKA
 #include <bzlib.h>
 
 int
-main ()
+main (void)
 {
 
     BZ2_bzopen("name","mode")
@@ -35478,7 +35478,7 @@ echo "${as_me:-configure}:35468: testing ... testing $cf_cv_library_path_bz2 ...
 #include <bzlib.h>
 
 int
-main ()
+main (void)
 {
 
     BZ2_bzopen("name","mode")
@@ -35565,7 +35565,7 @@ if test -n "$cf_cv_header_path_bz2" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -35724,7 +35724,7 @@ if test -n "$cf_searchpath/include" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -35805,7 +35805,7 @@ if test -n "$cf_searchpath/../include" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -35945,7 +35945,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <zlib.h>
 
 int
-main ()
+main (void)
 {
 
 	gzopen("name","mode")
@@ -35984,7 +35984,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <zlib.h>
 
 int
-main ()
+main (void)
 {
 
 	gzopen("name","mode")
@@ -36123,7 +36123,7 @@ echo "${as_me:-configure}:36116: testing ... testing $cf_cv_header_path_z ..." 1
 #include <zlib.h>
 
 int
-main ()
+main (void)
 {
 
 	gzopen("name","mode")
@@ -36179,7 +36179,7 @@ echo "${as_me:-configure}:36168: testing Searching for z library in FIND_LINKAGE
 #include <zlib.h>
 
 int
-main ()
+main (void)
 {
 
 	gzopen("name","mode")
@@ -36296,7 +36296,7 @@ echo "${as_me:-configure}:36287: testing ... testing $cf_cv_library_path_z ..."
 #include <zlib.h>
 
 int
-main ()
+main (void)
 {
 
 	gzopen("name","mode")
@@ -36383,7 +36383,7 @@ if test -n "$cf_cv_header_path_z" ; then
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello")
   ;
@@ -36508,7 +36508,7 @@ char $ac_func ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -36698,7 +36698,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char fs_free ();
 int
-main ()
+main (void)
 {
 fs_free ();
   ;
@@ -36745,7 +36745,7 @@ else
 	#include <math.h>
 
 int
-main ()
+main (void)
 {
 double x = rand(); printf("result = %g\n", sin(x))
   ;
@@ -38853,7 +38853,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char initscr ();
 int
-main ()
+main (void)
 {
 initscr ();
   ;
@@ -38924,7 +38924,7 @@ char winwstr ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -38989,7 +38989,7 @@ char pdcurses_dll_iname ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -39181,7 +39181,7 @@ if test "$ac_x_libraries" = no; then
 #include "confdefs.h"
 #include <X11/Intrinsic.h>
 int
-main ()
+main (void)
 {
 XtMalloc (0)
   ;
@@ -39278,7 +39278,7 @@ echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
 #include "confdefs.h"
 
 int
-main ()
+main (void)
 {
 
   ;
@@ -39315,7 +39315,7 @@ echo "${ECHO_T}no" >&6
 #include "confdefs.h"
 
 int
-main ()
+main (void)
 {
 
   ;
@@ -39377,7 +39377,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char XOpenDisplay ();
 int
-main ()
+main (void)
 {
 XOpenDisplay ();
   ;
@@ -39419,7 +39419,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char dnet_ntoa ();
 int
-main ()
+main (void)
 {
 dnet_ntoa ();
   ;
@@ -39473,7 +39473,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char dnet_ntoa ();
 int
-main ()
+main (void)
 {
 dnet_ntoa ();
   ;
@@ -39541,7 +39541,7 @@ char gethostbyname ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -39599,7 +39599,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char gethostbyname ();
 int
-main ()
+main (void)
 {
 gethostbyname ();
   ;
@@ -39653,7 +39653,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char gethostbyname ();
 int
-main ()
+main (void)
 {
 gethostbyname ();
   ;
@@ -39718,7 +39718,7 @@ char connect ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -39776,7 +39776,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char connect ();
 int
-main ()
+main (void)
 {
 connect ();
   ;
@@ -39834,7 +39834,7 @@ char remove ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -39892,7 +39892,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char remove ();
 int
-main ()
+main (void)
 {
 remove ();
   ;
@@ -39950,7 +39950,7 @@ char shmat ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -40008,7 +40008,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char shmat ();
 int
-main ()
+main (void)
 {
 shmat ();
   ;
@@ -40073,7 +40073,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char IceConnectionNumber ();
 int
-main ()
+main (void)
 {
 IceConnectionNumber ();
   ;
@@ -40361,7 +40361,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <X11/Xmu/CharSet.h>
 
 int
-main ()
+main (void)
 {
 
 int check = XmuCompareISOLatin1("big", "small")
@@ -40744,7 +40744,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char XextCreateExtension ();
 int
-main ()
+main (void)
 {
 XextCreateExtension ();
   ;
@@ -41504,7 +41504,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <X11/Xlib.h>
 
 int
-main ()
+main (void)
 {
 
 	int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
@@ -41708,7 +41708,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <X11/Shell.h>
 
 int
-main ()
+main (void)
 {
 int num = IceConnectionNumber(0)
 
@@ -42166,7 +42166,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello world");
   ;
@@ -42225,7 +42225,7 @@ char XOpenDisplay ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -42285,7 +42285,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char XOpenDisplay ();
 int
-main ()
+main (void)
 {
 XOpenDisplay ();
   ;
@@ -42358,7 +42358,7 @@ char XtAppInitialize ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -42418,7 +42418,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char XtAppInitialize ();
 int
-main ()
+main (void)
 {
 XtAppInitialize ();
   ;
@@ -42498,7 +42498,7 @@ echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
 #include <X11/Intrinsic.h>
 #include <$cf_test>
 int
-main ()
+main (void)
 {
 
   ;
@@ -42613,7 +42613,7 @@ echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6
 #include <X11/$cf_x_athena_root/SimpleMenu.h>
 
 int
-main ()
+main (void)
 {
 
 $cf_test((XtAppContext) 0)
@@ -42894,7 +42894,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello world");
   ;
@@ -42951,7 +42951,7 @@ extern "C"
    builtin and then its argument prototype would still apply.  */
 char XOpenDisplay ();
 int
-main ()
+main (void)
 {
 XOpenDisplay ();
   ;
@@ -43031,7 +43031,7 @@ cat >conftest.$ac_ext <<_ACEOF
 char *XCursesProgramName = "test";
 
 int
-main ()
+main (void)
 {
 XCursesExit();
   ;
@@ -43145,7 +43145,7 @@ else
 #include <LYCurses.h>
 #include <termio.h>
 int
-main ()
+main (void)
 {
 putchar(0x0a)
   ;
@@ -43254,7 +43254,7 @@ do
 #include <${cf_cv_ncurses_header:-curses.h}>
 
 int
-main ()
+main (void)
 {
 chtype x = $mapname['l']; $mapname['m'] = 0
   ;
@@ -43305,7 +43305,7 @@ else
 #include <${cf_cv_ncurses_header:-curses.h}>
 
 int
-main ()
+main (void)
 {
 attrset(A_UNDERLINE|A_BOLD|A_REVERSE);
 	 wattrset(stdscr, A_BLINK|A_DIM);
@@ -43359,7 +43359,7 @@ else
 #include "confdefs.h"
 
 #include <${cf_cv_ncurses_header:-curses.h}>
-int main()
+int main(void)
 {
 	char temp[1024];
 	sprintf(temp, "%s\n", curses_version());
@@ -43411,7 +43411,7 @@ cat >conftest.$ac_ext <<_ACEOF
 
 #include <${cf_cv_ncurses_header:-curses.h}>
 int
-main ()
+main (void)
 {
 
 #if defined(NCURSES_VERSION) && defined(wgetbkgd)
@@ -43472,7 +43472,7 @@ else
 #include <${cf_cv_ncurses_header:-curses.h}>
 
 int
-main ()
+main (void)
 {
 chtype x = COLOR_BLUE;
 	 has_colors();
@@ -43639,7 +43639,7 @@ echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
 #include "confdefs.h"
 #include <termios.h>
 int
-main ()
+main (void)
 {
 struct termios foo; int x = foo.c_iflag
   ;
@@ -43670,7 +43670,7 @@ cat conftest.$ac_ext >&5
 #define _POSIX_SOURCE
 #include <termios.h>
 int
-main ()
+main (void)
 {
 struct termios foo; int x = foo.c_iflag
   ;
@@ -43745,7 +43745,7 @@ do
 #endif
 
 int
-main ()
+main (void)
 {
 
 #ifdef TIOCGSIZE
@@ -43824,7 +43824,7 @@ else
 #include "confdefs.h"
 #include <${cf_cv_ncurses_header:-curses.h}>
 int
-main ()
+main (void)
 {
 char *x = &ttytype[1]; *x = 1
   ;
@@ -43875,7 +43875,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <stdlib.h>
 #include <${cf_cv_ncurses_header:-curses.h}>
 int
-main ()
+main (void)
 {
 
     wchar_t temp[2];
@@ -43931,7 +43931,7 @@ else
 #include <stdlib.h>
 #include <${cf_cv_ncurses_header:-curses.h}>
 int
-main ()
+main (void)
 {
 mbstate_t state
   ;
@@ -43962,7 +43962,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <wchar.h>
 #include <${cf_cv_ncurses_header:-curses.h}>
 int
-main ()
+main (void)
 {
 mbstate_t state
   ;
@@ -44028,7 +44028,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include <stdlib.h>
 #include <${cf_cv_ncurses_header:-curses.h}>
 int
-main ()
+main (void)
 {
 
 #if defined(NCURSES_VERSION_PATCH)
@@ -44074,7 +44074,7 @@ cat conftest.$ac_ext >&5
 #include <stdlib.h>
 #include <${cf_cv_ncurses_header:-curses.h}>
 int
-main ()
+main (void)
 {
 
 #ifdef NCURSES_VERSION
@@ -44148,7 +44148,7 @@ do
 #include <${cf_cv_ncurses_header:-curses.h}>
 #include <${cf_header}>
 int
-main ()
+main (void)
 {
 WINDOW *x
   ;
@@ -44194,7 +44194,7 @@ case $cf_cv_term_header in
 make an error
 #endif
 int
-main ()
+main (void)
 {
 WINDOW *x
   ;
@@ -44280,7 +44280,7 @@ do
 #include <${cf_cv_ncurses_header:-curses.h}>
 #include <${cf_header}>
 int
-main ()
+main (void)
 {
 WINDOW *x
   ;
@@ -44401,7 +44401,7 @@ char * XCursesProgramName = "test";
 #endif
 
 int
-main ()
+main (void)
 {
 
 #ifndef ${cf_func}
@@ -44478,7 +44478,7 @@ char $ac_func ();
 char (*f) ();
 
 int
-main ()
+main (void)
 {
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
@@ -44615,7 +44615,7 @@ LIBS="$cf_add_libs"
 #include "confdefs.h"
 
 int
-main ()
+main (void)
 {
 
   ;
@@ -44723,7 +44723,7 @@ cat >conftest.$ac_ext <<_ACEOF
 #include "confdefs.h"
 #include <stdio.h>
 int
-main ()
+main (void)
 {
 printf("Hello");
   ;
@@ -45128,7 +45128,7 @@ EOF
 cat >>$CONFIG_STATUS <<EOF
 ac_cs_version="\\
 config.status
-configured by $0, generated by GNU Autoconf 2.52.20150926,
+configured by $0, generated by GNU Autoconf 2.52.20170501,
   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
@@ -45210,7 +45210,7 @@ cat >&5 << _ACEOF
 ## Running config.status.  ##
 ## ----------------------- ##
 
-This file was extended by $as_me 2.52.20150926, executed with
+This file was extended by $as_me 2.52.20170501, executed with
   CONFIG_FILES    = $CONFIG_FILES
   CONFIG_HEADERS  = $CONFIG_HEADERS
   CONFIG_LINKS    = $CONFIG_LINKS
diff --git a/configure.in b/configure.in
index 6f87323..df394ff 100644
--- a/configure.in
+++ b/configure.in
@@ -1,4 +1,4 @@
-dnl $LynxId: configure.in,v 1.287 2017/04/29 14:49:46 tom Exp $
+dnl $LynxId: configure.in,v 1.288 2017/04/30 16:02:52 tom Exp $
 dnl
 dnl Process this file with autoconf to produce a configure script.
 dnl
@@ -29,7 +29,7 @@ dnl ---------------------------------------------------------------------------
 dnl
 dnl ask PRCS to plug-in the project-version for the configure-script.
 dnl $Format: "AC_REVISION($ProjectVersion$)"$
-AC_REVISION(2.8.9dev.13)
+AC_REVISION(2.8.9dev.14)
 
 # Save the original $CFLAGS so we can distinguish whether the user set those
 # in the environment, or whether autoconf added -O and -g options:
@@ -64,7 +64,7 @@ AC_ARG_PROGRAM
 PACKAGE=lynx
 dnl ask PRCS to plug-in the project-version for the packages.
 # $Format: "VERSION=$ProjectVersion$"$
-VERSION=2.8.9dev.13
+VERSION=2.8.9dev.14
 
 AC_SUBST(PACKAGE)
 AC_SUBST(VERSION)
diff --git a/lynx.cfg b/lynx.cfg
index e289787..a1568be 100644
--- a/lynx.cfg
+++ b/lynx.cfg
@@ -1,13 +1,13 @@
-# $LynxId: lynx.cfg,v 1.280 2017/04/29 12:47:15 tom Exp $
+# $LynxId: lynx.cfg,v 1.281 2017/04/30 16:02:52 tom Exp $
 # lynx.cfg file.
 # The default placement for this file is /usr/local/lib/lynx.cfg (Unix)
 #                                     or Lynx_Dir:lynx.cfg (VMS)
 #
 # $Format: "#PRCS LYNX_VERSION \"$ProjectVersion$\""$
-#PRCS LYNX_VERSION "2.8.9dev.13"
+#PRCS LYNX_VERSION "2.8.9dev.14"
 #
 # $Format: "#PRCS LYNX_DATE \"$ProjectDate$\""$
-#PRCS LYNX_DATE "Sat, 29 Apr 2017 08:47:15 -0400"
+#PRCS LYNX_DATE "Sun, 30 Apr 2017 12:02:52 -0400"
 #
 # Definition pairs are of the form  VARIABLE:DEFINITION
 # NO spaces are allowed between the pair items.
diff --git a/makefile.in b/makefile.in
index 705cb53..74adb01 100644
--- a/makefile.in
+++ b/makefile.in
@@ -1,4 +1,4 @@
-# $LynxId: makefile.in,v 1.160 2017/04/29 12:47:15 tom Exp $
+# $LynxId: makefile.in,v 1.161 2017/04/30 16:02:52 tom Exp $
 ##makefile for lynx
 
 SHELL		= @CONFIG_SHELL@
@@ -46,7 +46,7 @@ TAR_UP		= $(TAR) @TAR_UP_OPTIONS@ @TAR_PIPE_OPTIONS@
 TAR_DOWN	= $(TAR) @TAR_DOWN_OPTIONS@ @TAR_PIPE_OPTIONS@
 
 # $Format: "LYNX_VERSION	= $ProjectVersion$"$
-LYNX_VERSION	= 2.8.9dev.13
+LYNX_VERSION	= 2.8.9dev.14
 
 ## This is the version which we are developing (or, upon release, make this
 ## the same).  Use no dots in the name, since it must work on VMS and MS-DOS.
diff --git a/src/HTFWriter.c b/src/HTFWriter.c
index 6f04ea0..5356caa 100644
--- a/src/HTFWriter.c
+++ b/src/HTFWriter.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: HTFWriter.c,v 1.111 2017/02/11 00:28:32 tom Exp $
+ * $LynxId: HTFWriter.c,v 1.112 2017/04/30 17:55:13 tom Exp $
  *
  *		FILE WRITER				HTFWrite.h
  *		===========
@@ -173,7 +173,7 @@ static void decompress_gzip(HTStream *me)
 	    }
 	    gzclose(gzfp);
 	    LYCloseTempFP(fp);
-	    CTRACE((tfp, "...decompress %ld to %ld\n",
+	    CTRACE((tfp, "...decompress %" PRI_off_t " to %ld\n",
 		    me->anchor->actual_length,
 		    actual));
 	    if (success) {
diff --git a/src/HTML.c b/src/HTML.c
index e74d239..2053e53 100644
--- a/src/HTML.c
+++ b/src/HTML.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: HTML.c,v 1.168 2016/11/24 18:18:18 tom Exp $
+ * $LynxId: HTML.c,v 1.170 2017/04/30 18:45:06 tom Exp $
  *
  *		Structured stream to Rich hypertext converter
  *		============================================
@@ -4717,7 +4717,7 @@ static int HTML_start_element(HTStructured * me, int element_number,
 	    }
 	    CTRACE((tfp, "2.Ok, we're trying type=[%s] (present=%p)\n",
 		    NONNULL(I.type),
-		    present));
+		    (const void *) present));
 	    /* text+file don't go in here */
 	    if ((UseALTasVALUE == TRUE) ||
 		(present && present[HTML_INPUT_VALUE] &&
diff --git a/src/LYCurses.c b/src/LYCurses.c
index 63b73ec..28826a6 100644
--- a/src/LYCurses.c
+++ b/src/LYCurses.c
@@ -1,4 +1,4 @@
-/* $LynxId: LYCurses.c,v 1.183 2017/03/18 21:42:48 tom Exp $ */
+/* $LynxId: LYCurses.c,v 1.184 2017/04/30 17:52:12 tom Exp $ */
 #include <HTUtils.h>
 #include <HTAlert.h>
 
@@ -572,7 +572,7 @@ void wcurses_css(WINDOW * win, char *name,
 	if (tmpHash == NOSTYLE) {
 	    char *pclass = strrchr(name, '.');
 
-	    CTRACE2(TRACE_STYLE, (tfp, "undefined, trimming at %p\n", pclass));
+	    CTRACE2(TRACE_STYLE, (tfp, "undefined, trimming at %p\n", (void *) pclass));
 	    if (pclass)
 		*pclass = '\0';
 	    else
diff --git a/src/LYIcon.rc b/src/LYIcon.rc
index b351577..4bcdaf9 100644
--- a/src/LYIcon.rc
+++ b/src/LYIcon.rc
@@ -1,12 +1,12 @@
-// $LynxId: LYIcon.rc,v 1.28 2017/04/29 12:47:15 tom Exp $
+// $LynxId: LYIcon.rc,v 1.29 2017/04/30 16:02:52 tom Exp $
 
 #include <windows.h>
 
 100	ICON	"../samples/lynx.ico"
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION    2,8,9,1013
-PRODUCTVERSION 2,8,9,1013
+FILEVERSION    2,8,9,1014
+PRODUCTVERSION 2,8,9,1014
 FILEFLAGSMASK  VS_FFI_FILEFLAGSMASK
 FILEFLAGS      0
 FILEOS         VOS_NT_WINDOWS32
@@ -19,12 +19,12 @@ BEGIN
     BEGIN
       VALUE "CompanyName",      "http://invisible-island.net/lynx"
       VALUE "FileDescription",  "Lynx - web browser"
-      VALUE "FileVersion",      "2.8.9.1013"
+      VALUE "FileVersion",      "2.8.9.1014"
       VALUE "InternalName",     "Lynx"
       VALUE "LegalCopyright",   "�1997-2017 Thomas E. Dickey"
       VALUE "OriginalFilename", "lynx.exe"
       VALUE "ProductName",      "Lynx - web browser"
-      VALUE "ProductVersion",   "2.8.9.1013"
+      VALUE "ProductVersion",   "2.8.9.1014"
     END
   END
   BLOCK "VarFileInfo"
diff --git a/src/LYStrings.c b/src/LYStrings.c
index 9f0ef0f..d063a17 100644
--- a/src/LYStrings.c
+++ b/src/LYStrings.c
@@ -1,4 +1,4 @@
-/* $LynxId: LYStrings.c,v 1.267 2017/04/29 14:38:32 tom Exp $ */
+/* $LynxId: LYStrings.c,v 1.268 2017/05/10 22:11:33 tom Exp $ */
 #include <HTUtils.h>
 #include <HTCJK.h>
 #include <UCAux.h>
@@ -3069,6 +3069,39 @@ static int mbcs_glyphs(char *s, int len)
 }
 
 /*
+ * Check if there are no continuation bytes in the multibyte (sub)string of
+ * length len.
+ */
+static int mbcs_valid(char *s, int len, int limit)
+{
+    int i;
+    int result = FALSE;
+
+    if (IS_UTF8_TTY) {
+	for (i = 0; s[i] && i < limit; i++) {
+	    if (!IS_UTF8_EXTRA(s[i])) {
+		if ((i + 1) == len) {
+		    result = TRUE;
+		    break;
+		}
+	    }
+	}
+    } else if (IS_CJK_TTY) {
+	for (i = 0; s[i] && i < limit; i++) {
+	    if (!is8bits(s[i])) {
+		if ((i + 1) == len) {
+		    result = TRUE;
+		    break;
+		}
+	    }
+	}
+    } else {
+	result = TRUE;
+    }
+    return result;
+}
+
+/*
  * Calculates offset in bytes of a glyph at cell position pos.
  */
 static int mbcs_skip(char *s, int pos)
@@ -3116,6 +3149,8 @@ static int cell2char(char *s, int cells)
 		    break;
 		/* the best solution is the one with the most bytes */
 		best = pos;
+		if (mbcs_valid(s, pos, len))
+		    break;
 	    }
 	}
 	if (best >= 0)
diff --git a/userdefs.h b/userdefs.h
index 018f1a3..9439a09 100644
--- a/userdefs.h
+++ b/userdefs.h
@@ -1,5 +1,5 @@
 /*
- * $LynxId: userdefs.h,v 1.325 2017/04/29 12:47:15 tom Exp $
+ * $LynxId: userdefs.h,v 1.326 2017/04/30 16:02:52 tom Exp $
  *
  * Lynx - Hypertext navigation system
  *
@@ -1442,11 +1442,11 @@
  * the version definition with the Project Version on checkout.  Just
  * ignore it. - kw */
 /* $Format: "#define LYNX_VERSION \"$ProjectVersion$\""$ */
-#define LYNX_VERSION "2.8.9dev.13"
+#define LYNX_VERSION "2.8.9dev.14"
 #define LYNX_WWW_HOME "http://lynx.invisible-island.net/"
 #define LYNX_WWW_DIST "http://lynx.invisible-island.net/current/"
 /* $Format: "#define LYNX_DATE \"$ProjectDate$\""$ */
-#define LYNX_DATE "Sat, 29 Apr 2017 08:47:15 -0400"
+#define LYNX_DATE "Sun, 30 Apr 2017 12:02:52 -0400"
 #define LYNX_DATE_OFF 5		/* truncate the automatically-generated date */
 #define LYNX_DATE_LEN 11	/* truncate the automatically-generated date */
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-lynx/lynx-cur.git



More information about the pkg-lynx-commits mailing list