From: Randolph Chung <randolph@tausq.org>
To: parisc-linux@lists.parisc-linux.org
Subject: [parisc-linux] questionable code in glibc sunrpc code?
Date: Sun, 25 Aug 2002 17:55:57 -0700 [thread overview]
Message-ID: <20020826005557.GG25592@tausq.org> (raw)
glibc's sunrpc/clnt_tcp.c contains code like this:
*(u_long *)(ct->ct_mcall + 3 * BYTES_PER_XDR_UNIT)
= htonl(*(u_long *)info);
ct->ct_mcall is a char[] array that's after a struct,
BYTES_PER_XDR_UNIT is 4
if sizeof(u_long) is 8, then this is an unaligned access... (gcc notices
and complains loudly :-)
this code apparently works on other 64-bit archs.... anyone know how?
randolph
--
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/
next reply other threads:[~2002-08-26 0:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-26 0:55 Randolph Chung [this message]
2002-08-26 2:50 ` [parisc-linux] questionable code in glibc sunrpc code? John David Anglin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020826005557.GG25592@tausq.org \
--to=randolph@tausq.org \
--cc=parisc-linux@lists.parisc-linux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox