[coreboot] [PATCH] Fixes the build error while generating option_table.h

Patrick Georgi patrick at georgi-clan.de
Sun May 8 20:06:23 CEST 2011


Am 08.05.2011 20:01, schrieb Peter Stuge:
> if(!strncmp(line[strspn(line," ")],"\r\n",2) continue;
More like:
char val=line[strspn(line," ")];
if (val=='#' || val=='\n' || val=='\r') continue;

This has the benefit of handling
"    # comment"
and mac-style newlines, too.


Patrick




More information about the coreboot mailing list