summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-09-15 07:14:59 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-09-15 07:14:59 +0000
commitced95e1c1f1b1df5e2140aafdbf4d5a42c765a82 (patch)
tree4b207f2b49b9fc5aa004fe24884a8091886023ac /sbin
parentfc9df56613b97739c442fc3f34e9b014b6c4085f (diff)
remove unused variables
Diffstat (limited to 'sbin')
-rw-r--r--sbin/dump/traverse.c3
-rw-r--r--sbin/fsck_ffs/pass1.c3
-rw-r--r--sbin/fsck_ffs/pass5.c4
-rw-r--r--sbin/quotacheck/quotacheck.c3
4 files changed, 5 insertions, 8 deletions
diff --git a/sbin/dump/traverse.c b/sbin/dump/traverse.c
index 7863794c84f..083225c3f8d 100644
--- a/sbin/dump/traverse.c
+++ b/sbin/dump/traverse.c
@@ -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");
diff --git a/sbin/fsck_ffs/pass1.c b/sbin/fsck_ffs/pass1.c
index 05e0afe7542..d099a3a6da7 100644
--- a/sbin/fsck_ffs/pass1.c
+++ b/sbin/fsck_ffs/pass1.c
@@ -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.
diff --git a/sbin/fsck_ffs/pass5.c b/sbin/fsck_ffs/pass5.c
index 81bdd9b7f27..92258d8c599 100644
--- a/sbin/fsck_ffs/pass5.c
+++ b/sbin/fsck_ffs/pass5.c
@@ -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;
diff --git a/sbin/quotacheck/quotacheck.c b/sbin/quotacheck/quotacheck.c
index 6151963fcfe..3fda8cf555e 100644
--- a/sbin/quotacheck/quotacheck.c
+++ b/sbin/quotacheck/quotacheck.c
@@ -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 */