INN commit: trunk/frontends (inews.c rnews.c)
INN Commit
rra at isc.org
Sun Apr 3 13:28:46 UTC 2016
Date: Sunday, April 3, 2016 @ 06:28:46
Author: iulius
Revision: 9999
Fix unused variables
Modified:
trunk/frontends/inews.c
trunk/frontends/rnews.c
---------+
inews.c | 3 +--
rnews.c | 3 ++-
2 files changed, 3 insertions(+), 3 deletions(-)
Modified: inews.c
===================================================================
--- inews.c 2016-04-03 13:27:55 UTC (rev 9998)
+++ inews.c 2016-04-03 13:28:46 UTC (rev 9999)
@@ -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-04-03 13:27:55 UTC (rev 9998)
+++ rnews.c 2016-04-03 13:28:46 UTC (rev 9999)
@@ -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