Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Jul 2001 09:10:33 -0700 (PDT)
From:      Matthew Jacob <mjacob@feral.com>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        Matt Jacob <mjacob@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sbin/ping ping.c
Message-ID:  <Pine.BSF.4.21.0107070909580.54931-100000@beppo>
In-Reply-To: <Pine.BSF.4.21.0107072338310.72404-100000@besplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help

> >   which means common storage, byte aligned. Ahem. I though structs
> >   were supposed to be ALDOUBLE always? I mean, w/o pragma packed?
> 
> No.  They only need to be aligned suitably for type `foo' if they have
> members with type `foo'.  `struct sockaddr' only has members with type
> char or u_char, so it doesn't need much alignment, and happens not to
> get it.

Shows my rustiness. The Portable C compiler aligned structures based upon a
manifest constant- ALDOUBLE.

-matt



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0107070909580.54931-100000>