diff options
author | Werner Koch <wk@gnupg.org> | 2005-06-16 10:12:03 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2005-06-16 10:12:03 +0200 |
commit | deeba405a9a5868ea478db5003be6335ab9aac6f (patch) | |
tree | d61d720258fd571ec81a3d3e5d776320b7b1d796 /g10/misc.c | |
parent | New debugging optionhs, updates to the manual. (diff) | |
download | gnupg2-deeba405a9a5868ea478db5003be6335ab9aac6f.tar.xz gnupg2-deeba405a9a5868ea478db5003be6335ab9aac6f.zip |
gcc-4 defaults forced me to edit many many files to get rid of the
char * vs. unsigned char * warnings. The GNU coding standards used to
say that these mismatches are okay and better than a bunch of casts.
Obviously this has changed now.
Diffstat (limited to '')
-rw-r--r-- | g10/misc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/g10/misc.c b/g10/misc.c index 7012a8a25..516e80bcc 100644 --- a/g10/misc.c +++ b/g10/misc.c @@ -986,9 +986,10 @@ mpi_print( FILE *fp, gcry_mpi_t a, int mode ) } else { int rc; - unsigned char *buffer; + char *buffer; - rc = gcry_mpi_aprint( GCRYMPI_FMT_HEX, &buffer, NULL, a ); + rc = gcry_mpi_aprint( GCRYMPI_FMT_HEX, + &(unsigned char*)buffer, NULL, a ); assert( !rc ); fputs( buffer, fp ); n += strlen(buffer); |