* xdr_stdio.c: Remove the #ifndef mc68000 cruft. I'm not sure
authorBarry Jaspan <bjaspan@mit.edu>
Wed, 30 Oct 1996 18:22:13 +0000 (18:22 +0000)
committerBarry Jaspan <bjaspan@mit.edu>
Wed, 30 Oct 1996 18:22:13 +0000 (18:22 +0000)
  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

src/lib/rpc/ChangeLog
src/lib/rpc/xdr_stdio.c

index cfaf11721645f0a37b1e81dd19b90f23eb81801d..47f9aa99ebd7f5387fe1c2eb7f432a263be9147e 100644 (file)
@@ -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
index 6d59ad5c6e1d97a64c68b224c54d37738a46050b..3162847642b877931cd43bfad1f2837b5df2743d 100644 (file)
@@ -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);