From 852d01b3e233f9ec713d64cb7c26dc945b78072f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 22 Apr 2014 10:19:45 +0200 Subject: error support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libmdsserver/hash-table.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libmdsserver/hash-table.h') diff --git a/src/libmdsserver/hash-table.h b/src/libmdsserver/hash-table.h index f224401..9b05804 100644 --- a/src/libmdsserver/hash-table.h +++ b/src/libmdsserver/hash-table.h @@ -211,7 +211,8 @@ size_t hash_table_get(const hash_table_t* restrict this, size_t key); * @param this The hash table * @param key The key of the entry to add * @param value The value of the entry to add - * @return The previous value associated with the key, 0 if the key was not used + * @return The previous value associated with the key, 0 if the key was not used. + * 0 will also be returned on error, check the `errno` variable. */ size_t hash_table_put(hash_table_t* restrict this, size_t key, size_t value); -- cgit v1.2.3-70-g09d2