Fix to let it compile. This is not required but avoids complaints
authorWerner Koch <wk@gnupg.org>
Wed, 20 Jul 2005 16:08:15 +0000 (16:08 +0000)
committerWerner Koch <wk@gnupg.org>
Wed, 20 Jul 2005 16:08:15 +0000 (16:08 +0000)
from folks not reading the documentation.

g10/misc.c

index 516e80b..a0599f3 100644 (file)
@@ -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);