diff options
author | Nalin Dahyabhai <nalin@dahyabhai.net> | 2013-07-22 15:49:49 -0400 |
---|---|---|
committer | Nalin Dahyabhai <nalin@dahyabhai.net> | 2013-08-07 14:46:03 -0400 |
commit | e8099d6a0396cdde592eb3e8059af1cb36506271 (patch) | |
tree | d912a6e234c897d2fd3fd8c701ec9ebfc09a5ed0 /src/map.h | |
parent | ae785b3ceaa596dc4f11df2f298f4b85bd9ba77b (diff) | |
download | slapi-nis-e8099d6a0396cdde592eb3e8059af1cb36506271.tar.gz slapi-nis-e8099d6a0396cdde592eb3e8059af1cb36506271.tar.xz slapi-nis-e8099d6a0396cdde592eb3e8059af1cb36506271.zip |
Remember that locking can fail
The SLAPI and pthread rwlock functions, unlike the NSPR versions, return
result codes which can indicate failure. So don't throw them away.
Diffstat (limited to 'src/map.h')
-rw-r--r-- | src/map.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -115,7 +115,7 @@ int map_data_get_domain_size(struct plugin_state *state, const char *domain_name); int map_data_get_map_size(struct plugin_state *state, const char *domain_name, const char *map_name); -void map_rdlock(void); -void map_wrlock(void); -void map_unlock(void); +int map_rdlock(void); +int map_wrlock(void); +int map_unlock(void); #endif |