Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/dhcpcd/dist/src dhcpcd: Fix SMALL build
details: https://anonhg.NetBSD.org/src/rev/76c7b9bd813a
branches: trunk
changeset: 935434:76c7b9bd813a
user: roy <roy%NetBSD.org@localhost>
date: Thu Jul 02 17:15:00 2020 +0000
description:
dhcpcd: Fix SMALL build
diffstat:
external/bsd/dhcpcd/dist/src/logerr.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 6d367993a134 -r 76c7b9bd813a external/bsd/dhcpcd/dist/src/logerr.c
--- a/external/bsd/dhcpcd/dist/src/logerr.c Thu Jul 02 16:52:34 2020 +0000
+++ b/external/bsd/dhcpcd/dist/src/logerr.c Thu Jul 02 17:15:00 2020 +0000
@@ -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))
{
Home |
Main Index |
Thread Index |
Old Index