Remove unused variables.

This commit is contained in:
Stefan Farfeleder 2005-04-09 14:31:41 +00:00
parent e8ffd81605
commit 6c97c3d1d3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144840
7 changed files with 6 additions and 11 deletions

View File

@ -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) {

View File

@ -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");
}

View File

@ -144,7 +144,7 @@ main(argc, argv)
int argc;
char *argv[];
{
int c, n;
int c;
long val;
unsigned long uval;
char *ep;

View File

@ -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;

View File

@ -168,7 +168,6 @@ showmbufs()
int
initmbufs()
{
int i;
size_t len;
len = sizeof *mbstat;

View File

@ -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, "");

View File

@ -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':