From 733191a56c7d659a25f3541d0d88b7c3f93db4f9 Mon Sep 17 00:00:00 2001 From: "Pedro F. Giffuni" Date: Fri, 26 Feb 2016 23:12:59 +0000 Subject: [PATCH] pciconf: Silence a GCC warning. Fix the build on sparc64 and powerpc. Taken from: wma --- usr.sbin/pciconf/cap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/pciconf/cap.c b/usr.sbin/pciconf/cap.c index c1098c1a06e8..980e2c7aa361 100644 --- a/usr.sbin/pciconf/cap.c +++ b/usr.sbin/pciconf/cap.c @@ -535,7 +535,7 @@ cap_pciaf(int fd, struct pci_conf *p, uint8_t ptr) } static const char * -ea_bei_to_name(uint8_t bei) +ea_bei_to_name(int bei) { static const char *barstr[] = { "BAR0", "BAR1", "BAR2", "BAR3", "BAR4", "BAR5"