pciconf(8): Reallow trailing colon in selectors
Reallow device selectors to have a trailing colon, as documented in the manual page. This was broken along with some unrelated cleanups in r295806. PR: 215979 Reported by: David Boyd <David.Boyd49 at twc.com> Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
5fddef7999
commit
ca7d74d467
@ -917,11 +917,8 @@ parsesel(const char *str)
|
||||
while (isdigit(*ep) && i < 4) {
|
||||
selarr[i++] = strtoul(ep, &eppos, 10);
|
||||
ep = eppos;
|
||||
if (*ep == ':') {
|
||||
if (*ep == ':')
|
||||
ep++;
|
||||
if (*ep == '\0')
|
||||
i = 0;
|
||||
}
|
||||
}
|
||||
if (i > 0 && *ep == '\0') {
|
||||
sel.pc_func = (i > 2) ? selarr[--i] : 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user