use idiomatic safe form for FUNLOCK macro
authorRich Felker <dalias@aerifal.cx>
Sat, 24 Feb 2018 17:33:06 +0000 (12:33 -0500)
committerRich Felker <dalias@aerifal.cx>
Sat, 24 Feb 2018 17:33:06 +0000 (12:33 -0500)
commit455bd824457b3e6cc3998817aac4e500b027cc50
treeb116a97d30a0b0c84e2dd9fa1a59bdeb475bf67d
parent7c59d098632e4382c9b674b189edbfd80d327682
use idiomatic safe form for FUNLOCK macro

previously this macro used an odd if/else form instead of the more
idiomatic do/while(0), making it unsafe against omission of trailing
semicolon. the omission would make the following statement conditional
instead of producing an error.
src/internal/stdio_impl.h