Commit 6999fb40 authored by Chuck Lever's avatar Chuck Lever Committed by J. Bruce Fields

NLM: Remove AF_UNSPEC arm in nlm_display_address()

AF_UNSPEC support is no longer needed in nlm_display_address() now
that a presentation address is no longer generated for the h_srcaddr
field.
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
parent 1df40b60
...@@ -112,9 +112,6 @@ static void nlm_display_address(const struct sockaddr *sap, ...@@ -112,9 +112,6 @@ static void nlm_display_address(const struct sockaddr *sap,
const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap; const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap;
switch (sap->sa_family) { switch (sap->sa_family) {
case AF_UNSPEC:
snprintf(buf, len, "unspecified");
break;
case AF_INET: case AF_INET:
snprintf(buf, len, "%pI4", &sin->sin_addr.s_addr); snprintf(buf, len, "%pI4", &sin->sin_addr.s_addr);
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment