HomeFreeBSD

libc rpc: Fix mismatches in prototypes for array bounds.

Description

libc rpc: Fix mismatches in prototypes for array bounds.

Various RPC functions used a bare pointer in function prototypes to
describe fixed-length buffer arguments but used a fixed-length array
in the function definition. The manual page for these functions
describes the parameters as being fixed-length buffers, so update
the prototypes to match the definitions.

Reviewed by: imp, emaste
Reported by: GCC -Warray-parameter
Differential Revision: https://reviews.freebsd.org/D36757

(cherry picked from commit a2e41a585b3a8a54e09831ea476ccaa56142c1ae)

Details

Provenance
jhbAuthored on Sep 28 2022, 9:01 PM
Reviewer
imp
Differential Revision
D36757: libc rpc: Fix mismatches in prototypes for array bounds.
Parents
rG300df19195f8: bsd.sys.mk: Add NO_WARRAY_PARAMETER helper variable.
Branches
Unknown
Tags
Unknown