Hi,

        I've spent this weekend on rebuilding HLFS (proof reading, hehe) and
besides some minor problems I don't all remember I ran into a serious one.
Book instructs you to wrap fwrite()s with plain assert()...

        Manual says fwrite is defined like this:
size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream);

It says also that "If an error occurs, or the end-of-file is reached, the
return value is a short item count (or zero).". That is reason, why kernel
compilation failed. It's the very best testsuite... :]

        So, modify asserts, to check length against fwrite()'s return value...

- Mordae
-- 
http://linuxfromscratch.org/mailman/listinfo/hlfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to