From: Barry Jaspan Date: Wed, 30 Oct 1996 18:22:13 +0000 (+0000) Subject: * xdr_stdio.c: Remove the #ifndef mc68000 cruft. I'm not sure X-Git-Tag: krb5-1.0-freeze1~169 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=422624ae8a0202758fa649ebbceb35c15b25d0b2;p=krb5.git * xdr_stdio.c: Remove the #ifndef mc68000 cruft. I'm not sure what it was supposed to accomplish, but in both places it appeared it was unquestionably wrong. I suspect that the ifdef was put in originally to optimize byte-alignment code that wasn't necessary on the 68000. Who knows? Someone will complain if this isn't right. [krb5-libs/47] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9253 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/rpc/ChangeLog b/src/lib/rpc/ChangeLog index cfaf11721..47f9aa99e 100644 --- a/src/lib/rpc/ChangeLog +++ b/src/lib/rpc/ChangeLog @@ -1,3 +1,12 @@ +Wed Oct 30 13:18:34 1996 Barry Jaspan + + * xdr_stdio.c: Remove the #ifndef mc68000 cruft. I'm not sure + what it was supposed to accomplish, but in both places it appeared + it was unquestionably wrong. I suspect that the ifdef was put in + originally to optimize byte-alignment code that wasn't necessary + on the 68000. Who knows? Someone will complain if this isn't + right. [krb5-libs/47] + Tue Oct 29 13:03:50 1996 Barry Jaspan * auth_gssapi.c (auth_gssapi_create): #ifdef GSSAPI_KRB5, a null diff --git a/src/lib/rpc/xdr_stdio.c b/src/lib/rpc/xdr_stdio.c index 6d59ad5c6..316284764 100644 --- a/src/lib/rpc/xdr_stdio.c +++ b/src/lib/rpc/xdr_stdio.c @@ -108,9 +108,9 @@ xdrstdio_getlong(xdrs, lp) if (fread((caddr_t)&tmp, sizeof(rpc_int32), 1, (FILE *)xdrs->x_private) != 1) return (FALSE); -#ifndef mc68000 + *lp = ntohl(tmp); -#endif + return (TRUE); } @@ -119,10 +119,8 @@ xdrstdio_putlong(xdrs, lp) XDR *xdrs; long *lp; { - -#ifndef mc68000 rpc_int32 mycopy = htonl((rpc_int32)*lp); -#endif + if (fwrite((caddr_t)&mycopy, sizeof(rpc_int32), 1, (FILE *)xdrs->x_private) != 1) return (FALSE); return (TRUE);