diff --git a/src/sys/rmtsysnet.c b/src/sys/rmtsysnet.c index 45209354bc..907f93ff82 100644 --- a/src/sys/rmtsysnet.c +++ b/src/sys/rmtsysnet.c @@ -282,48 +282,14 @@ inparam_conversion(afs_int32 cmd, char *buffer, afs_int32 ntoh_conv) RFetchVolumeStatus_conversion(buffer, ntoh_conv); break; case VIOCGETTOK & 0xffff: - lptr = (afs_int32 *) buffer; - if (ntoh_conv) - *lptr = ntohl(*lptr); - else - *lptr = htonl(*lptr); - break; case VIOCCKSERV & 0xffff: - lptr = (afs_int32 *) buffer; - if (ntoh_conv) - *lptr = ntohl(*lptr); - else - *lptr = htonl(*lptr); - break; case VIOCACCESS & 0xffff: - lptr = (afs_int32 *) buffer; - if (ntoh_conv) - *lptr = ntohl(*lptr); - else - *lptr = htonl(*lptr); - break; case VIOCSETCACHESIZE & 0xffff: - lptr = (afs_int32 *) buffer; - if (ntoh_conv) - *lptr = ntohl(*lptr); - else - *lptr = htonl(*lptr); - break; case VIOCGETCELL & 0xffff: - lptr = (afs_int32 *) buffer; - if (ntoh_conv) - *lptr = ntohl(*lptr); - else - *lptr = htonl(*lptr); - break; case VIOC_AFS_MARINER_HOST & 0xffff: - lptr = (afs_int32 *) buffer; - if (ntoh_conv) - *lptr = ntohl(*lptr); - else - *lptr = htonl(*lptr); - break; case VIOC_VENUSLOG & 0xffff: + case VIOC_AFS_SYSNAME & 0xffff: + case VIOC_EXPORTAFS & 0xffff: lptr = (afs_int32 *) buffer; if (ntoh_conv) *lptr = ntohl(*lptr); @@ -342,20 +308,6 @@ inparam_conversion(afs_int32 cmd, char *buffer, afs_int32 ntoh_conv) else *lptr = htonl(*lptr); break; - case VIOC_AFS_SYSNAME & 0xffff: - lptr = (afs_int32 *) buffer; - if (ntoh_conv) - *lptr = ntohl(*lptr); - else - *lptr = htonl(*lptr); - break; - case VIOC_EXPORTAFS & 0xffff: - lptr = (afs_int32 *) buffer; - if (ntoh_conv) - *lptr = ntohl(*lptr); - else - *lptr = htonl(*lptr); - break; case VIOCGETAL & 0xffff: case VIOCGETVOLSTAT & 0xffff: case VIOCGETCACHEPARMS & 0xffff: @@ -444,39 +396,10 @@ outparam_conversion(afs_int32 cmd, char *buffer, afs_int32 ntoh_conv) lptr++; /* primary flag */ break; case VIOCCKCONN & 0xffff: - if (ntoh_conv) - *lptr = ntohl(*lptr); - else - *lptr = htonl(*lptr); - break; case VIOC_AFS_MARINER_HOST & 0xffff: - lptr = (afs_int32 *) buffer; - if (ntoh_conv) - *lptr = ntohl(*lptr); - else - *lptr = htonl(*lptr); - break; case VIOC_VENUSLOG & 0xffff: - lptr = (afs_int32 *) buffer; - if (ntoh_conv) - *lptr = ntohl(*lptr); - else - *lptr = htonl(*lptr); - break; case VIOC_GETCELLSTATUS & 0xffff: - lptr = (afs_int32 *) buffer; - if (ntoh_conv) - *lptr = ntohl(*lptr); - else - *lptr = htonl(*lptr); - break; case VIOC_AFS_SYSNAME & 0xffff: - lptr = (afs_int32 *) buffer; - if (ntoh_conv) - *lptr = ntohl(*lptr); - else - *lptr = htonl(*lptr); - break; case VIOC_EXPORTAFS & 0xffff: lptr = (afs_int32 *) buffer; if (ntoh_conv)