diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-09-30 08:08:40 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-09-30 08:08:40 +0000 |
commit | 0891f9706f4fc0951324b3a3f113f60191b96434 (patch) | |
tree | 48a72b0e6dfe0ee3564e3c810dea939b57d1a96a /nscd/nscd_helper.c | |
parent | 085f2dd0ad1ba523749669b24f0999a3d1496ed7 (diff) | |
download | glibc-0891f9706f4fc0951324b3a3f113f60191b96434.tar.gz glibc-0891f9706f4fc0951324b3a3f113f60191b96434.tar.xz glibc-0891f9706f4fc0951324b3a3f113f60191b96434.zip |
Update.
2004-09-30 Ulrich Drepper <drepper@redhat.com> * nscd/nscd-client.h (__nscd_get_map_ref): Drop volatile from last parameter. (__nscd_drop_map_ref): Change second parameter to be a referenc to a variable. Update variable when cycle count changed. * nscd/nscd_helper.c (__nscd_get_map_ref): Remove volatile here, too. * nscd/nscd_getai.c: Correctly use __nscd_drop_map_ref. Reinitialize all variables and avoid memory leak in case of retries. * nscd/nscd_getgr_r.c: Likewise. * nscd/nscd_gethst_r.c: Likewise. * nscd/nscd_getpw_r.c: Likewise. * nscd/nscd_initgroups.c: Likewise. * nscd/nscd.h: Add declaretion of addinitgroups and readdinitgroups.
Diffstat (limited to 'nscd/nscd_helper.c')
-rw-r--r-- | nscd/nscd_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nscd/nscd_helper.c b/nscd/nscd_helper.c index ae8dd6c91f..3c8693a93d 100644 --- a/nscd/nscd_helper.c +++ b/nscd/nscd_helper.c @@ -214,7 +214,7 @@ get_mapping (request_type type, const char *key, struct mapped_database * __nscd_get_map_ref (request_type type, const char *name, - struct locked_map_ptr *mapptr, volatile int *gc_cyclep) + struct locked_map_ptr *mapptr, int *gc_cyclep) { struct mapped_database *cur = mapptr->mapped; if (cur == NO_MAPPING) |