Print this page
8485 Remove set but unused variables in usr/src/cmd
@@ -1,6 +1,7 @@
/*
+ * Copyright 2017 Gary Mills
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
@@ -10,13 +11,11 @@
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <stdio.h>
#include <ctype.h>
extern char gfile[];
@@ -24,11 +23,11 @@
grepcall(char *in, char *out, char *arg)
{
char line[200], *s, argig[100], *cv[50];
char *inp, inb[500];
FILE *qf, *gf;
- int c, oldc = 0, alph = 0, nv = 0;
+ int c, alph = 0, nv = 0;
int sv0, sv1;
strcpy(argig, arg);
strcat(argig, ".ig");
strcpy(inp = inb, in);
if (gfile[0] == 0)
@@ -45,11 +44,10 @@
alph = (c == 0) ? 0 : alph+1;
if (alph == 1)
cv[nv++] = inp;
if (alph > 6)
*inp = 0;
- oldc = c;
}
#if D1
fprintf(stderr, "%d args set up\n", nv);
#endif
{