mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
See ChangeLog: Mon May 17 21:54:43 CEST 1999 Werner Koch
This commit is contained in:
parent
a1dcec76c1
commit
3983f30bd2
24 changed files with 378 additions and 182 deletions
|
@ -1,3 +1,7 @@
|
|||
Mon May 17 21:54:43 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
|
||||
|
||||
* logger.c (g10_log_hexdump): Made 2nd arg a const.
|
||||
|
||||
Wed Apr 28 13:03:03 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
|
||||
|
||||
* miscutil.c (asctimestamp): Use nl_langinfo (Gaël Quéri).
|
||||
|
|
11
util/iobuf.c
11
util/iobuf.c
|
@ -424,6 +424,12 @@ print_chain( IOBUF a )
|
|||
}
|
||||
}
|
||||
|
||||
int
|
||||
iobuf_print_chain( IOBUF a )
|
||||
{
|
||||
print_chain(a);
|
||||
}
|
||||
|
||||
/****************
|
||||
* Allocate a new io buffer, with no function assigned.
|
||||
* Use is the desired usage: 1 for input, 2 for output, 3 for temp buffer
|
||||
|
@ -787,7 +793,7 @@ iobuf_push_filter2( IOBUF a,
|
|||
/****************
|
||||
* Remove an i/o filter.
|
||||
*/
|
||||
static int
|
||||
int
|
||||
pop_filter( IOBUF a, int (*f)(void *opaque, int control,
|
||||
IOBUF chain, byte *buf, size_t *len), void *ov )
|
||||
{
|
||||
|
@ -856,7 +862,6 @@ pop_filter( IOBUF a, int (*f)(void *opaque, int control,
|
|||
}
|
||||
|
||||
|
||||
|
||||
/****************
|
||||
* read underflow: read more bytes into the buffer and return
|
||||
* the first byte or -1 on EOF.
|
||||
|
@ -949,8 +954,6 @@ underflow(IOBUF a)
|
|||
memcpy(a,b, sizeof *a);
|
||||
m_free(b);
|
||||
print_chain(a);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
else if( rc )
|
||||
|
|
|
@ -210,13 +210,13 @@ g10_log_debug_f( const char *fname, const char *fmt, ... )
|
|||
|
||||
|
||||
void
|
||||
g10_log_hexdump( const char *text, char *buf, size_t len )
|
||||
g10_log_hexdump( const char *text, const char *buf, size_t len )
|
||||
{
|
||||
int i;
|
||||
|
||||
print_prefix(text);
|
||||
for(i=0; i < len; i++ )
|
||||
fprintf(stderr, " %02X", ((byte*)buf)[i] );
|
||||
fprintf(stderr, " %02X", ((const byte*)buf)[i] );
|
||||
fputc('\n', stderr);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue