]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sunrpc/svc_udp.c
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / sunrpc / svc_udp.c
index 0e893c1929e1bfb5e9ec4856f55136d8d8e1e86c..17357c8ced0e567374c9fdf43a1cb5496815656f 100644 (file)
@@ -3,7 +3,7 @@
  * Server side for UDP/IP based RPC.  (Does some caching in the hopes of
  * achieving execute-at-most-once semantics.)
  *
- * Copyright (C) 2012-2015 Free Software Foundation, Inc.
+ * Copyright (C) 2012-2019 Free Software Foundation, Inc.
  * This file is part of the GNU C Library.
  *
  * The GNU C Library is free software; you can redistribute it and/or
@@ -64,6 +64,7 @@
 
 #include <wchar.h>
 #include <libio/iolibio.h>
+#include <shlib-compat.h>
 
 #define rpc_buffer(xprt) ((xprt)->xp_p1)
 #ifndef MAX
@@ -137,7 +138,7 @@ svcudp_bufcreate (int sock, u_int sendsz, u_int recvsz)
        }
       madesock = TRUE;
     }
-  __bzero ((char *) &addr, sizeof (addr));
+  memset ((char *) &addr, 0, sizeof (addr));
   addr.sin_family = AF_INET;
   if (bindresvport (sock, &addr))
     {