From 5e47c186121f4bcf4f4e0f665b6d136e97f1ff43 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 20 Jul 2005 16:08:15 +0000 Subject: [PATCH] Fix to let it compile. This is not required but avoids complaints from folks not reading the documentation. --- g10/misc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/g10/misc.c b/g10/misc.c index 516e80bcc..a0599f304 100644 --- a/g10/misc.c +++ b/g10/misc.c @@ -988,8 +988,7 @@ mpi_print( FILE *fp, gcry_mpi_t a, int mode ) int rc; char *buffer; - rc = gcry_mpi_aprint( GCRYMPI_FMT_HEX, - &(unsigned char*)buffer, NULL, a ); + rc = gcry_mpi_aprint( GCRYMPI_FMT_HEX, &buffer, NULL, a ); assert( !rc ); fputs( buffer, fp ); n += strlen(buffer);