af-byteorder-bis-20070307

everyone wants AF in host order
This commit is contained in:
Jim Rees 2007-03-07 21:42:20 +00:00
parent 5332348bdf
commit fc36880fed

View File

@ -3680,11 +3680,7 @@ afsmon_execute()
}
strncpy(curr_FS->hostName, he->h_name, HOST_NAME_LEN); /* complete name */
memcpy(&(curr_skt->sin_addr.s_addr), he->h_addr, 4);
#if defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
curr_skt->sin_family = AF_INET; /*Internet family */
#else
curr_skt->sin_family = htons(AF_INET); /*Internet family */
#endif
curr_skt->sin_port = htons(7000); /*FileServer port */
#ifdef STRUCT_SOCKADDR_HAS_SA_LEN
curr_skt->sin_len = sizeof(struct sockaddr_in);