This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH] Use offsetof instead of magic number in scandir()
- From: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- To: newlib at sourceware dot org
- Date: Thu, 28 Mar 2013 12:02:03 +0100
- Subject: Re: [PATCH] Use offsetof instead of magic number in scandir()
- References: <1364468303-7319-1-git-send-email-sebastian dot huber at embedded-brains dot de>
Hello,
this patch helps to avoid problems like this:
https://www.rtems.org/bugzilla/show_bug.cgi?id=1394
Why do we need a 4 byte alignment of allocated size?
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.