Mercurial > hg > dhcpcd
changeset 5401:1af97ed9fd4a draft
Fix SMALL build
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Thu, 02 Jul 2020 18:14:01 +0100 |
| parents | 6778068786a3 |
| children | 63820c0792bc |
| files | src/logerr.c |
| diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/logerr.c Thu Jul 02 14:42:57 2020 +0100 +++ b/src/logerr.c Thu Jul 02 18:14:01 2020 +0100 @@ -117,16 +117,15 @@ __printflike(3, 0) static int vlogprintf_r(struct logctx *ctx, FILE *stream, const char *fmt, va_list args) { - FILE *err; int len = 0, e; va_list a; #ifndef SMALL + FILE *err = ctx->log_err == NULL ? stderr : ctx->log_err; bool log_pid; #ifdef LOGERR_TAG bool log_tag; #endif - err = ctx->log_err == NULL ? stderr : ctx->log_err; if ((stream == err && ctx->log_opts & LOGERR_ERR_DATE) || (stream != err && ctx->log_opts & LOGERR_LOG_DATE)) {
