[LinuxBIOS] [PATCH] use strncmp in lar

Alex Beregszaszi alex at rtfs.hu
Thu Sep 6 02:50:55 CEST 2007


Hi,

attached patch adds:

1, simple strncmp implementation in include/string.h
2, changes lib/lar.c to use strncmp for magic check. Current code
depends on that the len field will never hold a value bigger than
0xffffff, which is a working assumption given current flash sizes, but
my next patch might affect this.

--
Alex

-------------- next part --------------
A non-text attachment was scrubbed...
Name: lar-strncmp.diff
Type: text/x-patch
Size: 504 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20070906/d623e3b5/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: strncmp.diff
Type: text/x-patch
Size: 765 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20070906/d623e3b5/attachment-0001.diff>


More information about the coreboot mailing list