SUNRPC: fewer conditionals in the format_ip_address routines
Clean up: have the set up routines explicitly pass the strings to be used for the transport name and NETID. This removes a number of conditionals and dependencies on rpc_xprt.prot, which is overloaded. Tighten up type checking on the address_strings array while we're at it. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:

committed by
Trond Myklebust

parent
cab6fc1b77
commit
b454ae9060
@@ -183,7 +183,7 @@ struct rpc_xprt {
|
||||
bklog_u; /* backlog queue utilization */
|
||||
} stat;
|
||||
|
||||
char * address_strings[RPC_DISPLAY_MAX];
|
||||
const char *address_strings[RPC_DISPLAY_MAX];
|
||||
};
|
||||
|
||||
struct xprt_create {
|
||||
|
Reference in New Issue
Block a user