errno: don’t use ‘_errno’ as a variable name; _ are reserved for use as identifiers

This commit is contained in:
Daniel Eklöf 2021-02-21 20:33:07 +01:00
parent 0bda60aacc
commit 555f751f94
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 29 additions and 28 deletions

6
log.c
View file

@ -149,14 +149,14 @@ void log_errno(enum log_class log_class, const char *module,
}
void log_errno_provided(enum log_class log_class, const char *module,
const char *file, int lineno, int _errno,
const char *file, int lineno, int errno_copy,
const char *fmt, ...)
{
va_list ap1, ap2;
va_start(ap1, fmt);
va_copy(ap2, ap1);
_log(log_class, module, file, lineno, fmt, _errno, ap1);
_sys_log(log_class, module, file, lineno, fmt, _errno, ap2);
_log(log_class, module, file, lineno, fmt, errno_copy, ap1);
_sys_log(log_class, module, file, lineno, fmt, errno_copy, ap2);
va_end(ap1);
va_end(ap2);
}