summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorKlemens Nanni <kn@cvs.openbsd.org>2021-10-25 19:54:30 +0000
committerKlemens Nanni <kn@cvs.openbsd.org>2021-10-25 19:54:30 +0000
commitdb519ace69433242e2bacf6dc0e0e2a7bc7409d5 (patch)
tree3d186541fe6a5ec85bbfc3449b64b55efa6f2e80 /usr.sbin
parentdda2670f1e9def0681dfa506b1089aec71655bdb (diff)
Zap unused variables/functions under /usr/src/*bin/
OK deraadt
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pcidump/pcidump.c5
-rw-r--r--usr.sbin/wsfontload/wsfontload.c4
2 files changed, 4 insertions, 5 deletions
diff --git a/usr.sbin/pcidump/pcidump.c b/usr.sbin/pcidump/pcidump.c
index aafe3fe8bba..3148a8732ee 100644
--- a/usr.sbin/pcidump/pcidump.c
+++ b/usr.sbin/pcidump/pcidump.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcidump.c,v 1.67 2021/10/24 21:24:19 deraadt Exp $ */
+/* $OpenBSD: pcidump.c,v 1.68 2021/10/25 19:54:29 kn Exp $ */
/*
* Copyright (c) 2006, 2007 David Gwynne <loki@animata.net>
@@ -377,7 +377,7 @@ print_vpd(const uint8_t *buf, size_t len)
const struct pci_vpd *vpd;
char key0[8];
char key1[8];
- size_t vlen, i;
+ size_t vlen;
while (len > 0) {
if (len < sizeof(*vpd))
@@ -411,7 +411,6 @@ dump_vpd(int bus, int dev, int func)
uint32_t data[64]; /* XXX this can be up to 32k of data */
uint8_t *buf = (uint8_t *)data;
size_t len = sizeof(data);
- size_t i;
bzero(&io, sizeof(io));
io.pv_sel.pc_bus = bus;
diff --git a/usr.sbin/wsfontload/wsfontload.c b/usr.sbin/wsfontload/wsfontload.c
index 9a9702c25a0..c9605a80dc1 100644
--- a/usr.sbin/wsfontload/wsfontload.c
+++ b/usr.sbin/wsfontload/wsfontload.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsfontload.c,v 1.24 2021/10/24 21:24:19 deraadt Exp $ */
+/* $OpenBSD: wsfontload.c,v 1.25 2021/10/25 19:54:29 kn Exp $ */
/* $NetBSD: wsfontload.c,v 1.2 2000/01/05 18:46:43 ad Exp $ */
/*
@@ -77,7 +77,7 @@ main(int argc, char *argv[])
char *wsdev, *infile, *p;
struct wsdisplay_font f;
struct wsdisplay_screentype screens;
- int c, res, wsfd, ffd, type, list, i;
+ int c, res, wsfd, ffd, list, i;
int defwidth, defheight;
struct stat stat;
size_t len;