64-bit big-endian platforms, bug report from Bill Fenner
<fenner@research.att.com>
2002-12-28 Ion Badulescu <ionut@moisil.badula.org>
+ * libamu/misc_rpc.c (make_rpc_packet): fix make_rpc_packet() on
+ 64-bit big-endian platforms, bug report from Bill Fenner
+ <fenner@research.att.com>
+
* configure.in: increase library patchlevel
* libamu/xutil.c (amu_release_controlling_tty): close and reopen
- Minor new ports:
sparc-sun-solaris2.9
+- bugs fixed:
+
+ * handle std{in,out,err} correctly when releasing controlling tty
+ (for real this time)
+ * don't cast pointers between enum_t and u_long, it doesn't work on
+ 64-bit big-endian platforms
+
*** Notes specific to am-utils version 6.0.8:
- Minor new ports:
*
* %W% (Berkeley) %G%
*
- * $Id: misc_rpc.c,v 1.4.2.3 2002/12/27 22:45:12 ezk Exp $
+ * $Id: misc_rpc.c,v 1.4.2.4 2002/12/28 23:28:40 ib42 Exp $
*
*/
{
XDR msg_xdr;
int len;
+ enum_t local_proc = (enum_t) proc;
xdrmem_create(&msg_xdr, buf, buflen, XDR_ENCODE);
/*
* Called procedure number
*/
- if (!xdr_enum(&msg_xdr, (enum_t *) & proc))
+ if (!xdr_enum(&msg_xdr, &local_proc))
return -EIO;
/*