From e8099d6a0396cdde592eb3e8059af1cb36506271 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Mon, 22 Jul 2013 15:49:49 -0400 Subject: 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. --- src/map.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/map.h') diff --git a/src/map.h b/src/map.h index 6bd7205..f5b0405 100644 --- a/src/map.h +++ b/src/map.h @@ -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 -- cgit