diff options
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pcidump/pcidump.c | 5 | ||||
-rw-r--r-- | usr.sbin/wsfontload/wsfontload.c | 4 |
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; |