diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1999-08-26 22:31:37 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1999-08-26 22:31:37 +0000 |
commit | 5b8d732ad24fa28b7607d1051c698c7b863ae2a1 (patch) | |
tree | d308e0066b42fdf4402dc581632e6aed4934b985 /sbin/isakmpd | |
parent | c06bc7fe3b7a86b99ed0d4edee84bd8162e2b7c9 (diff) |
Merge with EOM 1.25
author: niklas
Ouch ho, that was ugly, make code portable
Diffstat (limited to 'sbin/isakmpd')
-rw-r--r-- | sbin/isakmpd/log.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/isakmpd/log.c b/sbin/isakmpd/log.c index 2541afb9551..1f11934c9a6 100644 --- a/sbin/isakmpd/log.c +++ b/sbin/isakmpd/log.c @@ -1,5 +1,5 @@ -/* $OpenBSD: log.c,v 1.7 1999/07/07 22:11:14 niklas Exp $ */ -/* $EOM: log.c,v 1.24 1999/06/26 23:26:56 ho Exp $ */ +/* $OpenBSD: log.c,v 1.8 1999/08/26 22:31:36 niklas Exp $ */ +/* $EOM: log.c,v 1.25 1999/08/12 23:08:55 niklas Exp $ */ /* * Copyright (c) 1998, 1999 Niklas Hallqvist. All rights reserved. @@ -126,8 +126,8 @@ _log_print (int error, int syslog_level, const char *fmt, va_list ap, * We may need to explicitly close stdout to do this properly. * XXX - Figure out how to match two FILE *'s and rewrite. */ - if (log_output->_file != -1) - if (stdout->_file == log_output->_file) + if (fileno (log_output) != -1) + if (fileno (stdout) == fileno (log_output)) fclose (stdout); fclose (log_output); |