diff options
author | Wilco Dijkstra <wdijkstr@arm.com> | 2017-06-12 14:56:53 +0100 |
---|---|---|
committer | Wilco Dijkstra <wdijkstr@arm.com> | 2017-06-12 14:56:53 +0100 |
commit | d99431e519fdeb16edb1222b77430ac9853a2334 (patch) | |
tree | 25fd7c2817fa801a8228a5936f150faada6802e8 /sunrpc/svc_simple.c | |
parent | b05eca0e1d96aecb25516287913c54bbb93d3d92 (diff) | |
download | glibc-d99431e519fdeb16edb1222b77430ac9853a2334.zip glibc-d99431e519fdeb16edb1222b77430ac9853a2334.tar.gz glibc-d99431e519fdeb16edb1222b77430ac9853a2334.tar.bz2 |
Replace all internal uses of __bzero with memset. This removes the need
to redirect it to a builtin and means memset is inlined whenever possible,
including with -Os.
* sunrpc/bindrsvprt.c (bindresvport): Change __bzero to memset.
* sunrpc/clnt_gen.c (clnt_create): Likewise.
* sunrpc/des_impl.c (_des_crypt): Likewise.
* sunrpc/key_call.c (key_gendes): Likewise.
* sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
* sunrpc/svc_simple.c (universal): Likewise.
* sunrpc/svc_tcp.c (svctcp_create): Likewise.
* sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
* sysdeps/arm/aeabi_memclr.c (__aeabi_memclr): Likewise.
Diffstat (limited to 'sunrpc/svc_simple.c')
-rw-r--r-- | sunrpc/svc_simple.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sunrpc/svc_simple.c b/sunrpc/svc_simple.c index acc9b9d..f12ed31 100644 --- a/sunrpc/svc_simple.c +++ b/sunrpc/svc_simple.c @@ -154,7 +154,7 @@ universal (struct svc_req *rqstp, SVCXPRT *transp_l) if (pl->p_prognum == prog && pl->p_procnum == proc) { /* decode arguments into a CLEAN buffer */ - __bzero (xdrbuf, sizeof (xdrbuf)); /* required ! */ + memset (xdrbuf, 0, sizeof (xdrbuf)); /* required ! */ if (!svc_getargs (transp_l, pl->p_inproc, xdrbuf)) { svcerr_decode (transp_l); |