From owner-cvs-all Sat Jul 7 9:10:42 2001 Delivered-To: cvs-all@freebsd.org Received: from beppo.feral.com (beppo.feral.com [192.67.166.79]) by hub.freebsd.org (Postfix) with ESMTP id CFE3337B401; Sat, 7 Jul 2001 09:10:37 -0700 (PDT) (envelope-from mjacob@feral.com) Received: from beppo (mjacob@beppo [192.67.166.79]) by beppo.feral.com (8.11.3/8.11.3) with ESMTP id f67GAXS54965; Sat, 7 Jul 2001 09:10:34 -0700 (PDT) (envelope-from mjacob@feral.com) Date: Sat, 7 Jul 2001 09:10:33 -0700 (PDT) From: Matthew Jacob X-Sender: mjacob@beppo Reply-To: mjacob@feral.com To: Bruce Evans Cc: Matt Jacob , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/ping ping.c In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > 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