mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Finished the bulk of changes for gnupg 1.9. This included switching
to libgcrypt functions, using shared error codes from libgpg-error, replacing the old functions we used to have in ../util by those in ../jnlib and ../common, renaming the malloc functions and a couple of types. Note, that not all changes are listed below becuause they are too similar and done at far too many places. As of today the code builds using the current libgcrypt from CVS but it is very unlikely that it actually works.
This commit is contained in:
parent
b7b07d36e8
commit
c0c2c58054
90 changed files with 5078 additions and 2925 deletions
|
@ -1,5 +1,5 @@
|
|||
/* logging.c - useful logging functions
|
||||
* Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||
* Copyright (C) 1998, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
|
||||
*
|
||||
* This file is part of GnuPG.
|
||||
*
|
||||
|
@ -78,6 +78,12 @@ log_get_errorcount (int clear)
|
|||
return n;
|
||||
}
|
||||
|
||||
void
|
||||
log_inc_errorcount (void)
|
||||
{
|
||||
errorcount++;
|
||||
}
|
||||
|
||||
void
|
||||
log_set_file( const char *name )
|
||||
{
|
||||
|
@ -194,7 +200,12 @@ do_logv( int level, const char *fmt, va_list arg_ptr )
|
|||
fprintf (logstream, "[%u]", (unsigned int)getpid ());
|
||||
if (!with_time)
|
||||
putc (':', logstream);
|
||||
putc (' ', logstream);
|
||||
/* A leading backspace suppresses the extra space so that we can
|
||||
correclty output, programname, filename and linenumber. */
|
||||
if (fmt && *fmt == '\b')
|
||||
fmt++;
|
||||
else
|
||||
putc (' ', logstream);
|
||||
}
|
||||
|
||||
switch (level)
|
||||
|
@ -272,7 +283,7 @@ log_fatal( const char *fmt, ... )
|
|||
va_start( arg_ptr, fmt ) ;
|
||||
do_logv( JNLIB_LOG_FATAL, fmt, arg_ptr );
|
||||
va_end(arg_ptr);
|
||||
abort(); /* never called, bugs it makes the compiler happy */
|
||||
abort(); /* never called, but it makes the compiler happy */
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue