2007/10/3, Kazuo TAKADA <<a href="mailto:kztakada@sm.sony.co.jp">kztakada@sm.sony.co.jp</a>>:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<a href="mailto:loic.grenie@gmail.com">loic.grenie@gmail.com</a> wrote:<br>{snip..}<br>><br>> It may be faster to do<br>><br>>if ((w = write_and_stats(...)))<br>> goto out_status;<br>><br>> and<br>
><br>>return w;<br>><br>> because write_and_stats returns 1 on failure. You can even tweak<br>> it to return either EXIT_SUCCESS or EXIT_FAILURE and change the<br>> if to:<br>><br>>if ((w = write_and_stats(...)) == EXIT_SUCCESS)
<br>> goto out_status;<br>><br>> (which is the same but symbolically different).<br><br>I agree with your suggestion basically and I had already tried.<br>But, in other lines, the variable 'w' is set with the written size by
<br>the function 'full_write_or_warn()'.</blockquote><div><br><br> Sorry, my bad.<br><br> Loïc<br></div></div><br>