Remove unused variables.
This commit is contained in:
parent
e8ffd81605
commit
6c97c3d1d3
@ -307,7 +307,7 @@ linkchk(FTSENT *p)
|
||||
struct links_entry *le, **new_buckets;
|
||||
struct stat *st;
|
||||
size_t i, new_size;
|
||||
int count, hash;
|
||||
int hash;
|
||||
|
||||
st = p->fts_statp;
|
||||
|
||||
@ -325,7 +325,6 @@ linkchk(FTSENT *p)
|
||||
if (number_entries > number_buckets * 10 && !stop_allocating) {
|
||||
new_size = number_buckets * 2;
|
||||
new_buckets = malloc(new_size * sizeof(struct links_entry *));
|
||||
count = 0;
|
||||
|
||||
/* Try releasing the free list to see if that helps. */
|
||||
if (new_buckets == NULL && free_list != NULL) {
|
||||
|
@ -379,10 +379,9 @@ who(char *u)
|
||||
void
|
||||
pline(struct passwd *pw)
|
||||
{
|
||||
u_int rid;
|
||||
|
||||
if (!pw) {
|
||||
if ((pw = getpwuid(rid = getuid())) == NULL)
|
||||
if ((pw = getpwuid(getuid())) == NULL)
|
||||
err(1, "getpwuid");
|
||||
}
|
||||
|
||||
|
@ -144,7 +144,7 @@ main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
int c, n;
|
||||
int c;
|
||||
long val;
|
||||
unsigned long uval;
|
||||
char *ep;
|
||||
|
@ -92,9 +92,8 @@ process(void)
|
||||
{
|
||||
struct s_command *cp;
|
||||
SPACE tspace;
|
||||
size_t len, oldpsl = 0;
|
||||
size_t oldpsl = 0;
|
||||
char *p;
|
||||
char nc;
|
||||
|
||||
p = NULL;
|
||||
|
||||
|
@ -168,7 +168,6 @@ showmbufs()
|
||||
int
|
||||
initmbufs()
|
||||
{
|
||||
int i;
|
||||
size_t len;
|
||||
|
||||
len = sizeof *mbstat;
|
||||
|
@ -76,7 +76,7 @@ main(int argc, char **argv)
|
||||
struct cset *delete, *squeeze;
|
||||
int n, *p;
|
||||
int Cflag, cflag, dflag, sflag, isstring2;
|
||||
wint_t ch, cnt, i, lastch;
|
||||
wint_t ch, cnt, lastch;
|
||||
|
||||
(void)setlocale(LC_ALL, "");
|
||||
|
||||
|
@ -102,10 +102,9 @@ usage(void)
|
||||
void
|
||||
scanopts(int argc, char **argv)
|
||||
{
|
||||
int c, i, opt_f;
|
||||
int c, i;
|
||||
ccharp **dirlist;
|
||||
|
||||
opt_f = 0;
|
||||
while ((c = getopt(argc, argv, "BMSabfmqsux")) != -1)
|
||||
switch (c) {
|
||||
case 'B':
|
||||
|
Loading…
Reference in New Issue
Block a user