INN commit: trunk/innfeed (main.c)

INN Commit rra at isc.org
Mon Jan 4 21:09:47 UTC 2021


    Date: Monday, January 4, 2021 @ 13:09:47
  Author: iulius
Revision: 10488

infeed: remove portability code for older versions of Solaris

Solaris 11 (at last!) defines optarg and optind in <unistd.h>,
which causes a gcc warning of redundant declarations.
Solaris 11 was released in 2011.

As optarg and optind are already used elsewhere without that
portability code that only innfeed has, just remove it.

Modified:
  trunk/innfeed/main.c

--------+
 main.c |    4 ----
 1 file changed, 4 deletions(-)

Modified: main.c
===================================================================
--- main.c	2021-01-04 10:48:29 UTC (rev 10487)
+++ main.c	2021-01-04 21:09:47 UTC (rev 10488)
@@ -70,10 +70,6 @@
 char *deliver_to_header = NULL;
 
 /* imports */
-#if defined (sun)
-extern char *optarg ;           /* needed for Solaris */
-extern int optind;
-#endif
 extern bool genHtml ;
 extern bool debugShrinking;
 extern bool fastExit;



More information about the inn-committers mailing list