summaryrefslogtreecommitdiff
path: root/usr/src/cmd/fs.d
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2017-06-26 16:06:52 +0000
committerRobert Mustacchi <rm@joyent.com>2017-06-26 17:14:00 +0000
commitf67cf39ba88ad7c4bee81445cc7a7468e0289f01 (patch)
treeabf954a14cf966983d08b93ea8b2e51e551e3a19 /usr/src/cmd/fs.d
parent7edb9f69d2426b044fa60c7a168c9eaeb12f1884 (diff)
downloadillumos-joyent-f67cf39ba88ad7c4bee81445cc7a7468e0289f01.tar.gz
backout: 3729 getifaddrs must learn to stop worrying and love the other address families (breaks consumers)
Diffstat (limited to 'usr/src/cmd/fs.d')
-rw-r--r--usr/src/cmd/fs.d/nfs/statd/sm_proc.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/usr/src/cmd/fs.d/nfs/statd/sm_proc.c b/usr/src/cmd/fs.d/nfs/statd/sm_proc.c
index 1a07de0877..00d8d59f89 100644
--- a/usr/src/cmd/fs.d/nfs/statd/sm_proc.c
+++ b/usr/src/cmd/fs.d/nfs/statd/sm_proc.c
@@ -1174,8 +1174,7 @@ in_host_array(char *host)
* nothing and leaves host_name the way it was previous to the call.
*/
static void
-add_to_host_array(char *host)
-{
+add_to_host_array(char *host) {
void *new_block = NULL;
@@ -1183,7 +1182,7 @@ add_to_host_array(char *host)
if (addrix >= host_name_count) {
host_name_count += HOST_NAME_INCR;
new_block = realloc((void *)host_name,
- host_name_count*sizeof (char *));
+ host_name_count*sizeof (char *));
if (new_block != NULL)
host_name = new_block;
else {
@@ -1339,9 +1338,6 @@ merge_ips(void)
break;
}
- case AF_LINK:
- continue;
-
default:
syslog(LOG_WARNING, "Unknown address family %d for "
"interface %s", sa->sa_family, cifap->ifa_name);