about summary refs log tree commit diff
path: root/sunrpc/clnt_gen.c
diff options
context:
space:
mode:
authorWilco Dijkstra <wdijkstr@arm.com>2017-06-12 14:56:53 +0100
committerWilco Dijkstra <wdijkstr@arm.com>2017-06-12 14:56:53 +0100
commitd99431e519fdeb16edb1222b77430ac9853a2334 (patch)
tree25fd7c2817fa801a8228a5936f150faada6802e8 /sunrpc/clnt_gen.c
parentb05eca0e1d96aecb25516287913c54bbb93d3d92 (diff)
downloadglibc-d99431e519fdeb16edb1222b77430ac9853a2334.tar.gz
glibc-d99431e519fdeb16edb1222b77430ac9853a2334.tar.xz
glibc-d99431e519fdeb16edb1222b77430ac9853a2334.zip
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/clnt_gen.c')
-rw-r--r--sunrpc/clnt_gen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sunrpc/clnt_gen.c b/sunrpc/clnt_gen.c
index 542f85dd35..13ced8994e 100644
--- a/sunrpc/clnt_gen.c
+++ b/sunrpc/clnt_gen.c
@@ -57,7 +57,7 @@ clnt_create (const char *hostname, u_long prog, u_long vers,
 
   if (strcmp (proto, "unix") == 0)
     {
-      __bzero ((char *)&sun, sizeof (sun));
+      memset ((char *)&sun, 0, sizeof (sun));
       sun.sun_family = AF_UNIX;
       strcpy (sun.sun_path, hostname);
       sock = RPC_ANYSOCK;