darwin80 if changes cleanup
authorDerrick Brashear <shadow@dementia.org>
Mon, 25 Jan 2010 17:36:25 +0000 (12:36 -0500)
committerDerrick Brashear <shadow|account-1000005@unknown>
Mon, 25 Jan 2010 17:39:54 +0000 (09:39 -0800)
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 <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

src/afs/afs_server.c
src/rx/rx_kcommon.c

index bd1e4af..93e57fa 100644 (file)
@@ -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++) {
index 8432041..92e60a8 100644 (file)
@@ -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++) {