Comment 1 for bug 300361

Revision history for this message
Stefan Lesicnik (stefanlsd) wrote :

Capture the return value of the write(). This fixes a FTBFS on Jaunty which uses -Werror.

The alternative is to do some proper checking if the buffer is successfully written. In the case of the information coming from a struct with set values, the likelyhood of not getting all the data is highly unlikely, hence just captured and ignored.