Remove qualifier from function return type in tst-svc_register.c
Joseph Myers
joseph@codesourcery.com
Thu Feb 14 22:04:00 GMT 2019
Building the testsuite with -Wextra produces a warning in
sunrpc/tst-svc_register.c for a useless qualifier on a function return
type. This patch removes that qualifier.
Tested for x86_64.
2019-02-14 Joseph Myers <joseph@codesourcery.com>
* sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
from function return type.
diff --git a/sunrpc/tst-svc_register.c b/sunrpc/tst-svc_register.c
index 7590121e5c..73f8db2fa1 100644
--- a/sunrpc/tst-svc_register.c
+++ b/sunrpc/tst-svc_register.c
@@ -54,7 +54,7 @@ server_dispatch (struct svc_req *request, SVCXPRT *transport)
}
/* The port on which rpcbind listens for incoming requests. */
-static inline const struct sockaddr_in
+static inline struct sockaddr_in
rpcbind_address (void)
{
return (struct sockaddr_in)
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list