summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Jaspan <bjaspan@mit.edu>1996-10-30 18:22:13 +0000
committerBarry Jaspan <bjaspan@mit.edu>1996-10-30 18:22:13 +0000
commit422624ae8a0202758fa649ebbceb35c15b25d0b2 (patch)
tree575fd6ce9f87ec03c108f18e9ab3b8abafe7170a
parentcc03b6ee2575a14f1230bc09ad7afb65f1f1162a (diff)
downloadkrb5-422624ae8a0202758fa649ebbceb35c15b25d0b2.tar.gz
krb5-422624ae8a0202758fa649ebbceb35c15b25d0b2.tar.xz
krb5-422624ae8a0202758fa649ebbceb35c15b25d0b2.zip
* 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
-rw-r--r--src/lib/rpc/ChangeLog9
-rw-r--r--src/lib/rpc/xdr_stdio.c8
2 files changed, 12 insertions, 5 deletions
diff --git a/src/lib/rpc/ChangeLog b/src/lib/rpc/ChangeLog
index cfaf117216..47f9aa99eb 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 6d59ad5c6e..3162847642 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);