diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-04-22 10:19:45 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-04-22 10:19:45 +0200 |
commit | 852d01b3e233f9ec713d64cb7c26dc945b78072f (patch) | |
tree | 1a00f44b28f08f9c71fc033348184201398b9063 /src/libmdsserver/hash-table.h | |
parent | more restrict (diff) | |
download | mds-852d01b3e233f9ec713d64cb7c26dc945b78072f.tar.gz mds-852d01b3e233f9ec713d64cb7c26dc945b78072f.tar.bz2 mds-852d01b3e233f9ec713d64cb7c26dc945b78072f.tar.xz |
error support
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/libmdsserver/hash-table.h | 3 |
1 files changed, 2 insertions, 1 deletions
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); |