Module Name: src
Committed By: roy
Date: Thu Jul 2 17:15:00 UTC 2020
Modified Files:
src/external/bsd/dhcpcd/dist/src: logerr.c
Log Message:
dhcpcd: Fix SMALL build
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/bsd/dhcpcd/dist/src/logerr.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/dhcpcd/dist/src/logerr.c
diff -u src/external/bsd/dhcpcd/dist/src/logerr.c:1.6 src/external/bsd/dhcpcd/dist/src/logerr.c:1.7
--- src/external/bsd/dhcpcd/dist/src/logerr.c:1.6 Thu Jul 2 13:59:19 2020
+++ src/external/bsd/dhcpcd/dist/src/logerr.c Thu Jul 2 17:15:00 2020
@@ -117,16 +117,15 @@ logprintdate(FILE *stream)
__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))
{