1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-12 09:58:36 +00:00

Use __unused instead of casting to void to silence the unused parameter

warning.

Fix the indentation of 2 lines to conform with the style of this file.

Submitted by:	jhb
This commit is contained in:
Stefan Eßer 2016-02-18 20:20:36 +00:00
parent a59c2129f3
commit 873e155c03
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=295769
2 changed files with 4 additions and 10 deletions

View File

@ -117,12 +117,9 @@ cap_agp(int fd, struct pci_conf *p, uint8_t ptr)
}
static void
cap_vpd(int fd, struct pci_conf *p, uint8_t ptr)
cap_vpd(int fd __unused, struct pci_conf *p __unused, uint8_t ptr __unused)
{
(void)fd; /* UNUSED */
(void)p; /* UNUSED */
(void)ptr; /* UNUSED */
printf("VPD");
}
@ -520,12 +517,9 @@ cap_msix(int fd, struct pci_conf *p, uint8_t ptr)
}
static void
cap_sata(int fd, struct pci_conf *p, uint8_t ptr)
cap_sata(int fd __unused, struct pci_conf *p __unused, uint8_t ptr __unused)
{
(void)fd; /* UNUSED */
(void)p; /* UNUSED */
(void)ptr; /* UNUSED */
printf("SATA Index-Data Pair");
}

View File

@ -915,8 +915,8 @@ parsesel(const char *str)
ep += 3;
i = 0;
do {
selarr[i++] = strtoul(ep, &eppos, 10);
ep = eppos;
selarr[i++] = strtoul(ep, &eppos, 10);
ep = eppos;
} while ((*ep == ':' || *ep == '.') && *++ep != '\0' && i < 4);
if (i > 2)