diff options
| -rw-r--r-- | src/lib/rpc/ChangeLog | 9 | ||||
| -rw-r--r-- | src/lib/rpc/xdr_stdio.c | 8 |
2 files changed, 12 insertions, 5 deletions
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 <bjaspan@mit.edu> + + * 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 <bjaspan@mit.edu> * 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); |
