util: mark strhash with nonnull

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-11-09 20:43:18 +01:00
parent 44edd4a75e
commit a955519a7a
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ a_strncat(char *dst, ssize_t n, const char *src, ssize_t l)
/** Compute a hash for a string.
* This is based on 'djb2' algorithm.
*/
static inline unsigned long
static inline unsigned long __attribute__ ((nonnull(1)))
a_strhash(const unsigned char *str)
{
unsigned long hash = 5381;