mirror of
https://github.com/openbsd/src.git
synced 2024-12-21 23:18:00 -08:00
remove unused variables
This commit is contained in:
parent
8fbd69a9e8
commit
f6e4162f05
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: gencode.c,v 1.66 2024/04/08 02:51:14 jsg Exp $ */
|
||||
/* $OpenBSD: gencode.c,v 1.67 2024/09/15 07:14:58 jsg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998
|
||||
@ -175,7 +175,6 @@ static void *
|
||||
newchunk(size_t n)
|
||||
{
|
||||
struct membag *m;
|
||||
int k, size;
|
||||
void *p;
|
||||
|
||||
m = &membag[cur_membag];
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: traverse.c,v 1.42 2024/02/03 18:51:57 beck Exp $ */
|
||||
/* $OpenBSD: traverse.c,v 1.43 2024/09/15 07:14:58 jsg Exp $ */
|
||||
/* $NetBSD: traverse.c,v 1.17 1997/06/05 11:13:27 lukem Exp $ */
|
||||
|
||||
/*-
|
||||
@ -150,7 +150,6 @@ fs_mapinodes(ino_t maxino, int64_t *tapesize, int *anydirskipped)
|
||||
int i, cg, inosused;
|
||||
struct cg *cgp;
|
||||
ino_t ino;
|
||||
char *cp;
|
||||
|
||||
if ((cgp = malloc(sblock->fs_cgsize)) == NULL)
|
||||
quit("fs_mapinodes: cannot allocate memory.\n");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: pass1.c,v 1.49 2024/02/03 18:51:57 beck Exp $ */
|
||||
/* $OpenBSD: pass1.c,v 1.50 2024/09/15 07:14:58 jsg Exp $ */
|
||||
/* $NetBSD: pass1.c,v 1.16 1996/09/27 22:45:15 christos Exp $ */
|
||||
|
||||
/*
|
||||
@ -71,7 +71,6 @@ pass1(void)
|
||||
u_int c;
|
||||
struct inodesc idesc;
|
||||
daddr_t i, cgd;
|
||||
u_int8_t *cp;
|
||||
|
||||
/*
|
||||
* Set file system reserved blocks in used block map.
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: pass5.c,v 1.51 2024/02/03 18:51:57 beck Exp $ */
|
||||
/* $OpenBSD: pass5.c,v 1.52 2024/09/15 07:14:58 jsg Exp $ */
|
||||
/* $NetBSD: pass5.c,v 1.16 1996/09/27 22:45:18 christos Exp $ */
|
||||
|
||||
/*
|
||||
@ -67,7 +67,7 @@ pass5(void)
|
||||
struct fs *fs = &sblock;
|
||||
daddr_t dbase, dmax;
|
||||
daddr_t d;
|
||||
long i, k, rewritecg = 0;
|
||||
long i, rewritecg = 0;
|
||||
ino_t j;
|
||||
struct csum *cs;
|
||||
struct csum_total cstotal;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: quotacheck.c,v 1.42 2024/02/03 18:51:57 beck Exp $ */
|
||||
/* $OpenBSD: quotacheck.c,v 1.43 2024/09/15 07:14:58 jsg Exp $ */
|
||||
/* $NetBSD: quotacheck.c,v 1.12 1996/03/30 22:34:25 mark Exp $ */
|
||||
|
||||
/*
|
||||
@ -269,7 +269,6 @@ chkquota(const char *vfstype, const char *fsname, const char *mntpt,
|
||||
int cg, i, mode, errs = 0, status;
|
||||
ino_t ino, inosused;
|
||||
pid_t pid;
|
||||
char *cp;
|
||||
|
||||
switch (pid = fork()) {
|
||||
case -1: /* error */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: rpcinfo.c,v 1.19 2024/08/16 16:00:30 florian Exp $ */
|
||||
/* $OpenBSD: rpcinfo.c,v 1.20 2024/09/15 07:14:58 jsg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2010, Oracle America, Inc.
|
||||
@ -489,7 +489,6 @@ void
|
||||
pmapdump(int argc, char **argv)
|
||||
{
|
||||
struct sockaddr_in server_addr;
|
||||
struct hostent *hp;
|
||||
struct pmaplist *head = NULL;
|
||||
int socket = RPC_ANYSOCK;
|
||||
struct timeval minutetimeout;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: w.c,v 1.69 2024/08/19 07:28:22 florian Exp $ */
|
||||
/* $OpenBSD: w.c,v 1.70 2024/09/15 07:14:58 jsg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1980, 1991, 1993, 1994
|
||||
@ -107,7 +107,6 @@ main(int argc, char *argv[])
|
||||
struct kinfo_proc *kp;
|
||||
struct stat *stp;
|
||||
FILE *ut;
|
||||
struct in_addr addr;
|
||||
int ch, i, nentries, nusers, wcmd;
|
||||
char *memf, *nlistf, *p, *x;
|
||||
char buf[HOST_NAME_MAX+1], errbuf[_POSIX2_LINE_MAX];
|
||||
|
Loading…
Reference in New Issue
Block a user