diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2000-04-07 22:05:39 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2000-04-07 22:05:39 +0000 |
commit | 5078f5812be2c84680ff81a1c37d33641fce3476 (patch) | |
tree | e92e88f0c94c4c2c779516dc0b47792b25d657eb /sbin/isakmpd/log.c | |
parent | 10a998d1df2254739f1b19c64cf5e761fc34eb7a (diff) |
Merge with EOM 1.27
author: ho
Add log_init() to properly initialize log_output variable.
Diffstat (limited to 'sbin/isakmpd/log.c')
-rw-r--r-- | sbin/isakmpd/log.c | 12 |
1 files changed, 9 insertions, 3 deletions
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,12 +51,18 @@ 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) { if (!log_output && f) |