From a955519a7a4b8d0488a1cc323b39ce0033a7ffbd Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 9 Nov 2009 20:43:18 +0100 Subject: [PATCH] util: mark strhash with nonnull Signed-off-by: Julien Danjou --- common/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/util.h b/common/util.h index 4c5363298..ef313d6b2 100644 --- a/common/util.h +++ b/common/util.h @@ -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;