From f6e4162f05818bbc182b2d0e7e8682ece0079a77 Mon Sep 17 00:00:00 2001 From: jsg Date: Sun, 15 Sep 2024 07:14:58 +0000 Subject: [PATCH] remove unused variables --- lib/libpcap/gencode.c | 3 +-- sbin/dump/traverse.c | 3 +-- sbin/fsck_ffs/pass1.c | 3 +-- sbin/fsck_ffs/pass5.c | 4 ++-- sbin/quotacheck/quotacheck.c | 3 +-- usr.bin/rpcinfo/rpcinfo.c | 3 +-- usr.bin/w/w.c | 3 +-- 7 files changed, 8 insertions(+), 14 deletions(-) diff --git a/lib/libpcap/gencode.c b/lib/libpcap/gencode.c index 0feb2bd807b..ea463eb3025 100644 --- a/lib/libpcap/gencode.c +++ b/lib/libpcap/gencode.c @@ -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]; 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 */ diff --git a/usr.bin/rpcinfo/rpcinfo.c b/usr.bin/rpcinfo/rpcinfo.c index c407170cc52..124b894cbc0 100644 --- a/usr.bin/rpcinfo/rpcinfo.c +++ b/usr.bin/rpcinfo/rpcinfo.c @@ -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; diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c index d5d50833119..1c794993ada 100644 --- a/usr.bin/w/w.c +++ b/usr.bin/w/w.c @@ -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]; -- 2.20.1