sin_family is not network order
[openafs.git] / src / xstat / xstat_fs_test.c
index e55c154..4409e2a 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
@@ -103,7 +103,7 @@ static char *xferOpNames[] = {
 void
 PrintCallInfo(void)
 {                              /*PrintCallInfo */
-    register int i;            /*Loop variable */
+    int i;             /*Loop variable */
     int numInt32s;             /*# int32words returned */
     afs_int32 *currInt32;      /*Ptr to current afs_int32 value */
     char *printableTime;       /*Ptr to printable time string */
@@ -634,7 +634,7 @@ CountListItems(struct cmd_item *a_firstItem)
  *     meat of the program.  We count the number of File Servers
  *     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.
@@ -707,12 +707,8 @@ RunTheTest(struct cmd_syndesc *a_s, void *dummy)
      */
     curr_item = a_s->parms[P_FS_NAMES].items;
     for (currFS = 0; currFS < numFSs; currFS++) {
-#if defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV)
-       FSSktArray[currFS].sin_family = AF_INET;        /*Internet family */
-#else
-       FSSktArray[currFS].sin_family = htons(AF_INET); /*Internet family */
-#endif
-       FSSktArray[currFS].sin_port = htons(7000);      /*FileServer port */
+       FSSktArray[currFS].sin_family = AF_INET;
+       FSSktArray[currFS].sin_port = htons(7000);      /* FileServer port */
        he = hostutil_GetHostByName(curr_item->data);
        if (he == NULL) {
            fprintf(stderr, "[%s] Can't get host info for '%s'\n", rn,
@@ -835,7 +831,7 @@ int
 main(int argc, char **argv)
 {
     static char rn[] = "xstat_fs_test";        /*Routine name */
-    register afs_int32 code;   /*Return code */
+    afs_int32 code;    /*Return code */
     struct cmd_syndesc *ts;    /*Ptr to cmd line syntax desc */
 
     /*