sin_family is not network order
[openafs.git] / src / xstat / xstat_cm_test.c
index f2c8aea..9404d98 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -1208,7 +1208,7 @@ CountListItems(struct cmd_item *a_firstItem)
  *     meat of the program.  We count the number of Cache Managers
  *     to watch, allocate enough space to remember all the connection
  *     info for them, then go for it.
- *     
+ *
  *
  * Arguments:
  *     a_s : Ptr to the command line syntax descriptor.
@@ -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,