gpg: Change the API for checksum to use const qualifier.

* g10/main.h (checksum): Use const.
* g10/misc.c (checksum): Use const.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2020-11-02 11:26:09 +09:00
parent 3151210e45
commit 21d8927f79
2 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ void unregister_secured_file (const char *fname);
int is_secured_file (int fd);
int is_secured_filename (const char *fname);
u16 checksum_u16( unsigned n );
u16 checksum( byte *p, unsigned n );
u16 checksum( const byte *p, unsigned n );
u16 checksum_mpi( gcry_mpi_t a );
u32 buffer_to_u32( const byte *buffer );
const byte *get_session_marker( size_t *rlen );

View File

@ -241,7 +241,7 @@ checksum_u16( unsigned n )
u16
checksum( byte *p, unsigned n )
checksum (const byte *p, unsigned n)
{
u16 a;