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 fhreturn fhr;
|
||||||
struct stat stb;
|
struct stat stb;
|
||||||
struct statfs fsb;
|
struct statfs fsb;
|
||||||
struct addrinfo *ai;
|
|
||||||
char host[NI_MAXHOST], numerichost[NI_MAXHOST];
|
char host[NI_MAXHOST], numerichost[NI_MAXHOST];
|
||||||
int lookup_failed = 1;
|
int lookup_failed = 1;
|
||||||
struct sockaddr *saddr;
|
struct sockaddr *saddr;
|
||||||
@ -595,7 +594,6 @@ mntsrv(rqstp, transp)
|
|||||||
NULL, 0, 0);
|
NULL, 0, 0);
|
||||||
getnameinfo(saddr, saddr->sa_len, numerichost,
|
getnameinfo(saddr, saddr->sa_len, numerichost,
|
||||||
sizeof numerichost, NULL, 0, NI_NUMERICHOST);
|
sizeof numerichost, NULL, 0, NI_NUMERICHOST);
|
||||||
ai = NULL;
|
|
||||||
switch (rqstp->rq_proc) {
|
switch (rqstp->rq_proc) {
|
||||||
case NULLPROC:
|
case NULLPROC:
|
||||||
if (!svc_sendreply(transp, (xdrproc_t)xdr_void, NULL))
|
if (!svc_sendreply(transp, (xdrproc_t)xdr_void, NULL))
|
||||||
|
@ -336,7 +336,6 @@ static void
|
|||||||
ttyprt(struct xtty *xt)
|
ttyprt(struct xtty *xt)
|
||||||
{
|
{
|
||||||
int i, j;
|
int i, j;
|
||||||
pid_t pgid;
|
|
||||||
char *name, state[20];
|
char *name, state[20];
|
||||||
|
|
||||||
if (xt->xt_size != sizeof *xt)
|
if (xt->xt_size != sizeof *xt)
|
||||||
@ -357,7 +356,6 @@ ttyprt(struct xtty *xt)
|
|||||||
state[j++] = '-';
|
state[j++] = '-';
|
||||||
state[j] = '\0';
|
state[j] = '\0';
|
||||||
(void)printf("%-6s %8d", state, xt->xt_sid);
|
(void)printf("%-6s %8d", state, xt->xt_sid);
|
||||||
pgid = 0;
|
|
||||||
(void)printf("%6d ", xt->xt_pgid);
|
(void)printf("%6d ", xt->xt_pgid);
|
||||||
switch (xt->xt_line) {
|
switch (xt->xt_line) {
|
||||||
case TTYDISC:
|
case TTYDISC:
|
||||||
|
@ -46,7 +46,6 @@ static const char rcsid[] =
|
|||||||
void
|
void
|
||||||
copymkdir(char const * dir, char const * skel, mode_t mode, uid_t uid, gid_t gid)
|
copymkdir(char const * dir, char const * skel, mode_t mode, uid_t uid, gid_t gid)
|
||||||
{
|
{
|
||||||
int rc = 0;
|
|
||||||
char src[MAXPATHLEN];
|
char src[MAXPATHLEN];
|
||||||
char dst[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;
|
++counter;
|
||||||
chown(dir, uid, gid);
|
chown(dir, uid, gid);
|
||||||
if (skel == NULL || *skel == '\0')
|
if (skel != NULL && *skel != '\0') {
|
||||||
rc = 1;
|
|
||||||
else {
|
|
||||||
DIR *d = opendir(skel);
|
DIR *d = opendir(skel);
|
||||||
|
|
||||||
if (d != NULL) {
|
if (d != NULL) {
|
||||||
|
@ -477,7 +477,7 @@ donames(fd, super, name)
|
|||||||
char *name;
|
char *name;
|
||||||
{
|
{
|
||||||
int c;
|
int c;
|
||||||
ino_t inode, inode1;
|
ino_t inode;
|
||||||
ino_t maxino;
|
ino_t maxino;
|
||||||
union dinode *dp;
|
union dinode *dp;
|
||||||
|
|
||||||
@ -486,7 +486,6 @@ donames(fd, super, name)
|
|||||||
while ((c = getchar()) != EOF && (c < '0' || c > '9'))
|
while ((c = getchar()) != EOF && (c < '0' || c > '9'))
|
||||||
while ((c = getchar()) != EOF && c != '\n');
|
while ((c = getchar()) != EOF && c != '\n');
|
||||||
ungetc(c,stdin);
|
ungetc(c,stdin);
|
||||||
inode1 = -1;
|
|
||||||
while (scanf("%u",&inode) == 1) {
|
while (scanf("%u",&inode) == 1) {
|
||||||
if (inode > maxino) {
|
if (inode > maxino) {
|
||||||
warnx("illegal inode %d",inode);
|
warnx("illegal inode %d",inode);
|
||||||
@ -504,7 +503,6 @@ donames(fd, super, name)
|
|||||||
c = getchar();
|
c = getchar();
|
||||||
}
|
}
|
||||||
putchar('\n');
|
putchar('\n');
|
||||||
inode1 = inode;
|
|
||||||
} else {
|
} else {
|
||||||
if (errno) {
|
if (errno) {
|
||||||
err(1, "%s", name);
|
err(1, "%s", name);
|
||||||
|
Loading…
Reference in New Issue
Block a user