diff mbox

Remove qualifier from function return type in tst-svc_register.c

Message ID alpine.DEB.2.21.1902142203500.4022@digraph.polyomino.org.uk
State Committed
Headers show

Commit Message

Joseph Myers Feb. 14, 2019, 10:04 p.m. UTC
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.

Comments

Florian Weimer Feb. 15, 2019, 8:04 a.m. UTC | #1
* Joseph Myers:

>  /* The port on which rpcbind listens for incoming requests.  */
> -static inline const struct sockaddr_in
> +static inline struct sockaddr_in
>  rpcbind_address (void)

Looks good.
diff mbox

Patch

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)