HomeFreeBSD

ANSIfy prototypes in subr_usbd.c.
rS209102Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

ANSIfy prototypes in subr_usbd.c.

Clang generates the following warnings when building subr_usbd.c:

subr_usbd.c:598:13: warning: promoted type 'int' of K&R function
parameter is not compatible with the parameter type 'uint8_t' (aka
'unsigned char') declared in a previous prototype
subr_usbd.c:627:13: warning: promoted type 'int' of K&R function
parameter is not compatible with the parameter type 'uint8_t' (aka
'unsigned char') declared in a previous prototype
subr_usbd.c:649:13: warning: promoted type 'int' of K&R function
parameter is not compatible with the parameter type 'uint8_t' (aka
'unsigned char') declared in a previous prototype

Instead of just ANSIfying these three prototypes, do it for the entire
file.

Spotted by: clang

Details

Provenance
edAuthored on
Parents
rS209101: Fix arc_read_done may try to byteswap undefined data (sparc related)
Branches
Unknown
Tags
Unknown

Event Timeline