sin_family is not network order
[openafs.git] / src / xstat / xstat_cm_test.c
index 38b4a46..9404d98 100644 (file)
@@ -1295,12 +1295,8 @@ RunTheTest(struct cmd_syndesc *a_s, void *arock)
      */
     curr_item = a_s->parms[P_CM_NAMES].items;
     for (currCM = 0; currCM < numCMs; currCM++) {
-#if defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV)
-       CMSktArray[currCM].sin_family = AF_INET;        /*Internet family */
-#else
-       CMSktArray[currCM].sin_family = htons(AF_INET); /*Internet family */
-#endif
-       CMSktArray[currCM].sin_port = htons(7001);      /*Cache Manager port */
+       CMSktArray[currCM].sin_family = AF_INET;
+       CMSktArray[currCM].sin_port = htons(7001);      /* Cache Manager port */
        he = hostutil_GetHostByName(curr_item->data);
        if (he == NULL) {
            fprintf(stderr, "[%s] Can't get host info for '%s'\n", rn,