From: Derrick Brashear Date: Mon, 25 Jan 2010 17:36:25 +0000 (-0500) Subject: darwin80 if changes cleanup X-Git-Tag: openafs-devel-1_5_71~23 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=73392259ec523fd9648e2c589d491050066d84d7;p=packages%2Fo%2Fopenafs.git darwin80 if changes cleanup fix the indirection here to be correct. ifnet_list_get needs a pointer to a pointer for the ifnet structure Change-Id: I81bd7c383c63cc1e312fcfd482d7162d50f6f1d3 Reviewed-on: http://gerrit.openafs.org/1158 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/afs/afs_server.c b/src/afs/afs_server.c index bd1e4af13..93e57fa9e 100644 --- a/src/afs/afs_server.c +++ b/src/afs/afs_server.c @@ -1478,7 +1478,7 @@ static int afs_SetServerPrefs(struct srvAddr *sa) { rx_ifaddr_t *ifads; rx_ifnet_t *ifns; - if (!ifnet_list_get(AF_INET, ifns, &count)) { + if (!ifnet_list_get(AF_INET, &ifns, &count)) { for (m = 0; m < count; m++) { if (!ifnet_get_address_list(ifns[m], &ifads)) { for (j = 0; ifads[j] != NULL && cnt < ADDRSPERSITE; j++) { diff --git a/src/rx/rx_kcommon.c b/src/rx/rx_kcommon.c index 8432041a7..92e60a837 100644 --- a/src/rx/rx_kcommon.c +++ b/src/rx/rx_kcommon.c @@ -686,7 +686,7 @@ rxi_GetIFInfo(void) memset(mtus, 0, sizeof(mtus)); #if defined(AFS_DARWIN80_ENV) - if (!ifnet_list_get(AF_INET, ifns, &count)) { + if (!ifnet_list_get(AF_INET, &ifns, &count)) { for (m = 0; m < count; m++) { if (!ifnet_get_address_list(ifns[m], &ifads)) { for (j = 0; ifads[j] != NULL && cnt < ADDRSPERSITE; j++) {