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:
parent
435071dff3
commit
d414fcbc3e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=148719
@ -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");
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user