This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Remove qualifier from function return type in tst-svc_register.c
- From: Joseph Myers <joseph at codesourcery dot com>
- To: <libc-alpha at sourceware dot org>
- Date: Thu, 14 Feb 2019 22:04:04 +0000
- Subject: Remove qualifier from function return type in tst-svc_register.c
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