Sascha Silbe <si...@linux.vnet.ibm.com> writes: > C11 allows errno to be clobbered by pretty much any library function > call, so in general callers need to take care to save errno before > calling other functions. > > However, for error reporting functions this is rather awkward and can > make the code on the caller side more complicated than > necessary. error_setg_errno() already takes care of preserving errno > and some functions rely on that, so just promise that we continue to > do so in the future. > > Signed-off-by: Sascha Silbe <si...@linux.vnet.ibm.com>
Reviewed-by: Markus Armbruster <arm...@redhat.com>