From 161286635cfa84e661aaa55932bb811f272a5695 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 13 Oct 2004 18:08:39 +0000 Subject: * configure.ac: Actually name the option --disable-finger and not http. Add option --enable-selinux-support. * logger.c (g10_log_error_f, g10_log_fatal_f, g10_log_info_f) (g10_log_debug_f, print_prefix_f): Removed. * iobuf.c (iobuf_is_pipe_filename): New. (iobuf_get_fd): New. --- util/logger.c | 70 ----------------------------------------------------------- 1 file changed, 70 deletions(-) (limited to 'util/logger.c') diff --git a/util/logger.c b/util/logger.c index 6990473b2..bd3156f3d 100644 --- a/util/logger.c +++ b/util/logger.c @@ -130,19 +130,6 @@ g10_log_print_prefix(const char *text) #endif /* __riscos__ */ } -static void -print_prefix_f(const char *text, const char *fname) -{ - if( !logfp ) - logfp = stderr; - if( pgm_name ) - fprintf(logfp, "%s%s:%s: %s", pgm_name, pidstring, fname, text ); - else - fprintf(logfp, "?%s:%s: %s", pidstring, fname, text ); -#ifdef __riscos__ - fflush( logfp ); -#endif /* __riscos__ */ -} void g10_log_info( const char *fmt, ... ) @@ -158,19 +145,6 @@ g10_log_info( const char *fmt, ... ) #endif /* __riscos__ */ } -void -g10_log_info_f( const char *fname, const char *fmt, ... ) -{ - va_list arg_ptr ; - - print_prefix_f("", fname); - va_start( arg_ptr, fmt ) ; - vfprintf(logfp,fmt,arg_ptr) ; - va_end(arg_ptr); -#ifdef __riscos__ - fflush( logfp ); -#endif /* __riscos__ */ -} void g10_log_warning( const char *fmt, ... ) @@ -209,20 +183,6 @@ g10_log_error( const char *fmt, ... ) #endif /* __riscos__ */ } -void -g10_log_error_f( const char *fname, const char *fmt, ... ) -{ - va_list arg_ptr ; - - print_prefix_f("", fname); - va_start( arg_ptr, fmt ) ; - vfprintf(logfp,fmt,arg_ptr) ; - va_end(arg_ptr); - errorcount++; -#ifdef __riscos__ - fflush( logfp ); -#endif /* __riscos__ */ -} void g10_log_fatal( const char *fmt, ... ) @@ -240,22 +200,6 @@ g10_log_fatal( const char *fmt, ... ) exit(2); } -void -g10_log_fatal_f( const char *fname, const char *fmt, ... ) -{ - va_list arg_ptr ; - - print_prefix_f("fatal: ", fname); - va_start( arg_ptr, fmt ) ; - vfprintf(logfp,fmt,arg_ptr) ; - va_end(arg_ptr); - secmem_dump_stats(); -#ifdef __riscos__ - fflush( logfp ); -#endif /* __riscos__ */ - exit(2); -} - void g10_log_bug( const char *fmt, ... ) { @@ -300,20 +244,6 @@ g10_log_debug( const char *fmt, ... ) #endif /* __riscos__ */ } -void -g10_log_debug_f( const char *fname, const char *fmt, ... ) -{ - va_list arg_ptr ; - - print_prefix_f("DBG: ", fname); - va_start( arg_ptr, fmt ) ; - vfprintf(logfp,fmt,arg_ptr) ; - va_end(arg_ptr); -#ifdef __riscos__ - fflush( logfp ); -#endif /* __riscos__ */ -} - void -- cgit