diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/ChangeLog | 4 | ||||
-rw-r--r-- | util/iobuf.c | 11 | ||||
-rw-r--r-- | util/logger.c | 4 |
3 files changed, 13 insertions, 6 deletions
diff --git a/util/ChangeLog b/util/ChangeLog index 33b500b02..1905d19c9 100644 --- a/util/ChangeLog +++ b/util/ChangeLog @@ -1,3 +1,7 @@ +Mon May 17 21:54:43 CEST 1999 Werner Koch <[email protected]> + + * logger.c (g10_log_hexdump): Made 2nd arg a const. + Wed Apr 28 13:03:03 CEST 1999 Werner Koch <[email protected]> * miscutil.c (asctimestamp): Use nl_langinfo (Ga�l Qu�ri). diff --git a/util/iobuf.c b/util/iobuf.c index 5eae82d10..bd7093a9e 100644 --- a/util/iobuf.c +++ b/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 ) diff --git a/util/logger.c b/util/logger.c index 89302161e..6536802ee 100644 --- a/util/logger.c +++ b/util/logger.c @@ -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); } |