diff options
author | Werner Koch <wk@gnupg.org> | 2002-12-21 15:53:17 +0000 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2002-12-21 15:53:17 +0000 |
commit | b8d8105888ada92c992b20caa0065411daa56fc5 (patch) | |
tree | 8eef19cd1f282c605800340a72c0bbc643d79932 /src/stdmem.h | |
parent | 5184801c117acbdb371810de80ace2d67316510f (diff) | |
download | libgcrypt-b8d8105888ada92c992b20caa0065411daa56fc5.tar.gz |
* gcrypt.h: Make use of gcc's pure and malloc attributes
(gcry_md_putc): Use a helper variable to avoid multiple
evaluation of H.
* g10lib.h, stdmem.h, secmem.h: Use gcc attributes pure and malloc.
* stdmem.c (use_m_guard): Don't default to yes.
Diffstat (limited to 'src/stdmem.h')
-rw-r--r-- | src/stdmem.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/stdmem.h b/src/stdmem.h index 0b1ca676..cf83f68b 100644 --- a/src/stdmem.h +++ b/src/stdmem.h @@ -23,10 +23,10 @@ void _gcry_private_enable_m_guard(void); -void *_gcry_private_malloc( size_t n); -void *_gcry_private_malloc_secure( size_t n); -void *_gcry_private_realloc( void *a, size_t n ); -void _gcry_private_check_heap( const void *a ); -void _gcry_private_free( void *a ); +void *_gcry_private_malloc (size_t n) GCC_ATTR_MALLOC; +void *_gcry_private_malloc_secure (size_t n) GCC_ATTR_MALLOC; +void *_gcry_private_realloc (void *a, size_t n); +void _gcry_private_check_heap (const void *a); +void _gcry_private_free (void *a); #endif /* G10_STDMEM_H */ |