[flashrom] [PATCH] Some c99 fixes.

Carl-Daniel Hailfinger c-d.hailfinger.devel.2006 at gmx.net
Mon Aug 27 01:47:39 CEST 2012

Am 27.08.2012 01:34 schrieb Stefan Tauner:
> This patch just fixes a limited number of bits not conforming to c99 by using
>  - __asm__ instead of just asm
>  - {0} instead of {} for struct initialization
>  - h_addr_list[0] instead of h_addr to access the host address in
>    struct hostent
>  - #include <strings.h> where needed (for ffs and strcasecmp)
> Signed-off-by: Stefan Tauner <stefan.tauner at student.tuwien.ac.at>
> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>

Cross-compilation with mingw64 and djgpp tested, works as well as
without the patch.

You might want to call the patch "C11 fixes" instead because some
complaints disappear in C11 mode. Your choice.



More information about the flashrom mailing list