From: niklas Date: Fri, 7 Apr 2000 22:05:38 +0000 (+0000) Subject: Merge with EOM 1.27 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6ceb4a22be833eeb60fe49e7cbc990abcbe21ddb;p=openbsd Merge with EOM 1.27 author: ho Add log_init() to properly initialize log_output variable. --- diff --git a/sbin/isakmpd/log.c b/sbin/isakmpd/log.c index 3c45c62a3ae..2f66d3551d3 100644 --- a/sbin/isakmpd/log.c +++ b/sbin/isakmpd/log.c @@ -1,5 +1,5 @@ -/* $OpenBSD: log.c,v 1.9 2000/02/25 17:23:40 niklas Exp $ */ -/* $EOM: log.c,v 1.26 2000/02/20 19:58:39 niklas Exp $ */ +/* $OpenBSD: log.c,v 1.10 2000/04/07 22:05:38 niklas Exp $ */ +/* $EOM: log.c,v 1.27 2000/03/30 14:27:03 ho Exp $ */ /* * Copyright (c) 1998, 1999 Niklas Hallqvist. All rights reserved. @@ -51,11 +51,17 @@ static void _log_print (int, int, const char *, va_list, int, int); -static FILE *log_output = stderr; +static FILE *log_output; #ifdef USE_DEBUG static int log_level[LOG_ENDCLASS]; #endif +void +log_init (void) +{ + log_output = stderr; +} + void log_to (FILE *f) {