about summary refs log tree commit diff
path: root/sunrpc/authuxprot.c
diff options
context:
space:
mode:
Diffstat (limited to 'sunrpc/authuxprot.c')
-rw-r--r--sunrpc/authuxprot.c36
1 files changed, 17 insertions, 19 deletions
diff --git a/sunrpc/authuxprot.c b/sunrpc/authuxprot.c
index 9b21ce195e..d172ebc655 100644
--- a/sunrpc/authuxprot.c
+++ b/sunrpc/authuxprot.c
@@ -48,24 +48,22 @@ static char sccsid[] = "@(#)authunix_prot.c 1.15 87/08/11 Copyr 1984 Sun Micro";
  * XDR for unix authentication parameters.
  */
 bool_t
-xdr_authunix_parms(xdrs, p)
-	register XDR *xdrs;
-	register struct authunix_parms *p;
+xdr_authunix_parms (XDR * xdrs, struct authunix_parms *p)
 {
-
-	if (xdr_u_long(xdrs, &(p->aup_time))
-	    && xdr_string(xdrs, &(p->aup_machname), MAX_MACHINE_NAME)
-	    && (sizeof (uid_t) == sizeof (short int)
-		? xdr_u_short(xdrs, (u_short *) &(p->aup_uid))
-		: xdr_u_int(xdrs, (u_int *) &(p->aup_uid)))
-	    && (sizeof (gid_t) == sizeof (short int)
-		? xdr_u_short(xdrs, (u_short *) &(p->aup_gid))
-		: xdr_u_int(xdrs, (u_int *) &(p->aup_gid)))
- 	    && xdr_array(xdrs, (caddr_t *)&(p->aup_gids),
-			 &(p->aup_len), NGRPS, sizeof(gid_t),
-			 (sizeof (gid_t) == sizeof (short int)
-			  ? xdr_u_short : xdr_u_int)) ) {
-		return (TRUE);
-	}
-	return (FALSE);
+  if (xdr_u_long (xdrs, &(p->aup_time))
+      && xdr_string (xdrs, &(p->aup_machname), MAX_MACHINE_NAME)
+      && (sizeof (uid_t) == sizeof (short int)
+	  ? xdr_u_short (xdrs, (u_short *) & (p->aup_uid))
+	  : xdr_u_int (xdrs, (u_int *) & (p->aup_uid)))
+      && (sizeof (gid_t) == sizeof (short int)
+	  ? xdr_u_short (xdrs, (u_short *) & (p->aup_gid))
+	  : xdr_u_int (xdrs, (u_int *) & (p->aup_gid)))
+      && xdr_array (xdrs, (caddr_t *) & (p->aup_gids),
+		    & (p->aup_len), NGRPS, sizeof (gid_t),
+		      (sizeof (gid_t) == sizeof (short int)
+		       ? (xdrproc_t) xdr_u_short : (xdrproc_t) xdr_u_int)))
+    {
+      return TRUE;
+    }
+  return FALSE;
 }