diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-02-21 19:33:07 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-02-21 19:33:07 +0000 |
| commit | 555f751f94a7efa90f03713a876f41f2424ea9f0 (patch) | |
| tree | 95b3ed4273abb6103f74b60e5915d9386ddc8936 /log.c | |
| parent | Merge branch 'restore-signals-when-spawning-subprocess' (diff) | |
errno: don’t use ‘_errno’ as a variable name; _ are reserved for use as identifiers
Diffstat (limited to 'log.c')
| -rw-r--r-- | log.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); } |
