INN commit: branches/2.6/frontends (inews.c rnews.c)

INN Commit rra at isc.org
Thu May 5 12:44:17 UTC 2016


    Date: Thursday, May 5, 2016 @ 05:44:17
  Author: iulius
Revision: 10017

Fix unused variables

Modified:
  branches/2.6/frontends/inews.c
  branches/2.6/frontends/rnews.c

---------+
 inews.c |    3 +--
 rnews.c |    3 ++-
 2 files changed, 3 insertions(+), 3 deletions(-)

Modified: inews.c
===================================================================
--- inews.c	2016-05-05 12:43:39 UTC (rev 10016)
+++ inews.c	2016-05-05 12:44:17 UTC (rev 10017)
@@ -438,7 +438,6 @@
     char        *buff;
     char	*out;
     char	*p;
-    int         left;
 
 #if	!defined(DONT_MUNGE_GETENV)
     memset(outbuff, 0, SMBUF);
@@ -455,7 +454,7 @@
      * buffer.  Remember that on some Unix systems, the content of the GECOS
      * field is under (untrusted) user control and we could be setgid. */
     p = pwp->pw_gecos;
-    left = SMBUF - 1;
+    int left = SMBUF - 1;
     if (*p == '*')
 	p++;
     for (out = outbuff; *p && !GECOSTERM(*p) && left; p++) {

Modified: rnews.c
===================================================================
--- rnews.c	2016-05-05 12:43:39 UTC (rev 10016)
+++ rnews.c	2016-05-05 12:44:17 UTC (rev 10017)
@@ -499,7 +499,6 @@
     int		gzip = 0;
     bool	HadCount;
     bool	SawCunbatch;
-    int		len;
 
     *countp = 0;
     for (SawCunbatch = false, HadCount = false; ; ) {
@@ -581,6 +580,8 @@
 	}
 
 #if	defined(DO_RNEWSPROGS)
+        int len;
+
 	cargv[0] = UNPACK;
 	cargv[1] = NULL;
 	/* Ignore any possible leading pathnames, to avoid trouble. */



More information about the inn-committers mailing list