mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-02 12:20:51 +00:00
Remove unused variables.
This commit is contained in:
parent
6c97c3d1d3
commit
18b51f792f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144841
@ -568,7 +568,6 @@ mntsrv(rqstp, transp)
|
||||
struct fhreturn fhr;
|
||||
struct stat stb;
|
||||
struct statfs fsb;
|
||||
struct addrinfo *ai;
|
||||
char host[NI_MAXHOST], numerichost[NI_MAXHOST];
|
||||
int lookup_failed = 1;
|
||||
struct sockaddr *saddr;
|
||||
@ -595,7 +594,6 @@ mntsrv(rqstp, transp)
|
||||
NULL, 0, 0);
|
||||
getnameinfo(saddr, saddr->sa_len, numerichost,
|
||||
sizeof numerichost, NULL, 0, NI_NUMERICHOST);
|
||||
ai = NULL;
|
||||
switch (rqstp->rq_proc) {
|
||||
case NULLPROC:
|
||||
if (!svc_sendreply(transp, (xdrproc_t)xdr_void, NULL))
|
||||
|
@ -336,7 +336,6 @@ static void
|
||||
ttyprt(struct xtty *xt)
|
||||
{
|
||||
int i, j;
|
||||
pid_t pgid;
|
||||
char *name, state[20];
|
||||
|
||||
if (xt->xt_size != sizeof *xt)
|
||||
@ -357,7 +356,6 @@ ttyprt(struct xtty *xt)
|
||||
state[j++] = '-';
|
||||
state[j] = '\0';
|
||||
(void)printf("%-6s %8d", state, xt->xt_sid);
|
||||
pgid = 0;
|
||||
(void)printf("%6d ", xt->xt_pgid);
|
||||
switch (xt->xt_line) {
|
||||
case TTYDISC:
|
||||
|
@ -46,7 +46,6 @@ static const char rcsid[] =
|
||||
void
|
||||
copymkdir(char const * dir, char const * skel, mode_t mode, uid_t uid, gid_t gid)
|
||||
{
|
||||
int rc = 0;
|
||||
char src[MAXPATHLEN];
|
||||
char dst[MAXPATHLEN];
|
||||
|
||||
@ -61,9 +60,7 @@ copymkdir(char const * dir, char const * skel, mode_t mode, uid_t uid, gid_t gid
|
||||
|
||||
++counter;
|
||||
chown(dir, uid, gid);
|
||||
if (skel == NULL || *skel == '\0')
|
||||
rc = 1;
|
||||
else {
|
||||
if (skel != NULL && *skel != '\0') {
|
||||
DIR *d = opendir(skel);
|
||||
|
||||
if (d != NULL) {
|
||||
|
@ -477,7 +477,7 @@ donames(fd, super, name)
|
||||
char *name;
|
||||
{
|
||||
int c;
|
||||
ino_t inode, inode1;
|
||||
ino_t inode;
|
||||
ino_t maxino;
|
||||
union dinode *dp;
|
||||
|
||||
@ -486,7 +486,6 @@ donames(fd, super, name)
|
||||
while ((c = getchar()) != EOF && (c < '0' || c > '9'))
|
||||
while ((c = getchar()) != EOF && c != '\n');
|
||||
ungetc(c,stdin);
|
||||
inode1 = -1;
|
||||
while (scanf("%u",&inode) == 1) {
|
||||
if (inode > maxino) {
|
||||
warnx("illegal inode %d",inode);
|
||||
@ -504,7 +503,6 @@ donames(fd, super, name)
|
||||
c = getchar();
|
||||
}
|
||||
putchar('\n');
|
||||
inode1 = inode;
|
||||
} else {
|
||||
if (errno) {
|
||||
err(1, "%s", name);
|
||||
|
Loading…
Reference in New Issue
Block a user