1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-29 12:03:03 +00:00

Garbage collect useless variables.

This commit is contained in:
Stefan Farfeleder 2005-08-05 07:39:39 +00:00
parent 435071dff3
commit d414fcbc3e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=148719
2 changed files with 1 additions and 4 deletions

View File

@ -397,7 +397,6 @@ flags_to_val(char *flags)
{
char *cp, *tok;
int i, tmp, val;
size_t flagslen;
errno = 0; /* to check for ERANGE */
val = (int)strtol(flags, &cp, 0);
@ -407,7 +406,6 @@ flags_to_val(char *flags)
return (val);
}
flagslen = strlen(flags);
/* Check for values represented by strings. */
if ((cp = strdup(flags)) == NULL)
err(1, "no memory to parse flags");

View File

@ -72,9 +72,8 @@ main(argc, argv)
{
struct iovec iov[6];
int ch, mntflags;
char *fs_name, *options, *fspec, mntpath[MAXPATHLEN];
char *fs_name, *fspec, mntpath[MAXPATHLEN];
options = NULL;
mntflags = 0;
while ((ch = getopt(argc, argv, "o:")) != -1)
switch (ch) {