From c6240f5b9e526e3baa5faeff6a53205b06b4987e Mon Sep 17 00:00:00 2001 From: bde Date: Fri, 8 May 1998 07:56:48 +0000 Subject: Translated to C (parameters in a function definition have the same scope as variables declared in the main block in the function, so shadowing of parameters by variables declared in the main block is not just an obfuscation). Found by: lint --- sys/pci/pcisupport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/pci') diff --git a/sys/pci/pcisupport.c b/sys/pci/pcisupport.c index f0fecd3..60c4a7e 100644 --- a/sys/pci/pcisupport.c +++ b/sys/pci/pcisupport.c @@ -1,6 +1,6 @@ /************************************************************************** ** -** $Id: pcisupport.c,v 1.65 1998/05/04 01:39:48 kato Exp $ +** $Id: pcisupport.c,v 1.66 1998/05/04 08:16:03 kato Exp $ ** ** Device driver for DEC/INTEL PCI chipsets. ** @@ -851,7 +851,7 @@ static struct pci_device vga_device = { DATA_SET (pcidevice_set, vga_device); -static char* vga_probe (pcici_t tag, pcidi_t type) +static char* vga_probe (pcici_t tag, pcidi_t unused) { int data = pci_conf_read(tag, PCI_CLASS_REG); u_int id = pci_conf_read(tag, PCI_ID_REG); -- cgit v1.1