mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-03 04:01:43 +08:00
c5db00dc30
Building Glibc with the latest GCC 11 shows a number of instances of the new -Warray-parameter warning designed to encourage consistency in the forms of array arguments in redeclarations of the same function (and, ultimately, to enable the detection of out of bounds accesses via such arguments). To avoid the subset of these warnings for the RPC APIs, this patch changes the declarations of these functions to match both their definitions and the Oracle RPC documentation. Besides avoiding the -Warray-parameter warnings the effect of this change is for GCC to issue warnings when either the functions are passed an array with fewer than MAXNETNAMELEN + 1 elements, or when the functions themselves access elements outside the array bounds. |
||
---|---|---|
.. | ||
rpc | ||
auth_des.c | ||
auth_none.c | ||
auth_unix.c | ||
authdes_prot.c | ||
authuxprot.c | ||
clnt_gen.c | ||
clnt_perr.c | ||
clnt_raw.c | ||
clnt_simp.c | ||
clnt_tcp.c | ||
clnt_udp.c | ||
clnt_unix.c | ||
create_xid.c | ||
des_crypt.c | ||
des_impl.c | ||
des_soft.c | ||
get_myaddr.c | ||
getrpcport.c | ||
key_call.c | ||
key_prot.c | ||
Makefile | ||
netname.c | ||
openchild.c | ||
pm_getmaps.c | ||
pm_getport.c | ||
pmap_clnt.c | ||
pmap_prot2.c | ||
pmap_prot.c | ||
pmap_rmt.c | ||
publickey.c | ||
rpc_cmsg.c | ||
rpc_common.c | ||
rpc_dtable.c | ||
rpc_gethostbyname.c | ||
rpc_prot.c | ||
rpc_thread.c | ||
rtime.c | ||
svc_auth.c | ||
svc_authux.c | ||
svc_raw.c | ||
svc_run.c | ||
svc_simple.c | ||
svc_tcp.c | ||
svc_udp.c | ||
svc_unix.c | ||
svc.c | ||
svcauth_des.c | ||
test-rpcent.c | ||
thrsvc.c | ||
tst-getmyaddr.c | ||
tst-svc_register.c | ||
tst-udp-error.c | ||
tst-udp-garbage.c | ||
tst-udp-nonblocking.c | ||
tst-udp-timeout.c | ||
tst-xdrmem2.c | ||
tst-xdrmem.c | ||
Versions | ||
xcrypt.c | ||
xdr_array.c | ||
xdr_float.c | ||
xdr_intXX_t.c | ||
xdr_mem.c | ||
xdr_rec.c | ||
xdr_ref.c | ||
xdr_sizeof.c | ||
xdr_stdio.c | ||
xdr.c |