key.k.uid = uid;
if ((node = rbfind(pwcache_byuid, &key)) != NULL) {
- item = (struct cache_item *) node->data;
+ item = node->data;
goto done;
}
/*
key.k.name = (char *) name;
if ((node = rbfind(pwcache_byname, &key)) != NULL) {
- item = (struct cache_item *) node->data;
+ item = node->data;
goto done;
}
/*
}
if ((node = rbinsert(pwcache, item)) != NULL) {
/* Already exists. */
- item = (struct cache_item *) node->data;
+ item = node->data;
if (item->d.pw == NULL) {
/* Negative cache entry, replace with ours. */
sudo_pw_delref_item(item);
key.k.gid = gid;
if ((node = rbfind(grcache_bygid, &key)) != NULL) {
- item = (struct cache_item *) node->data;
+ item = node->data;
goto done;
}
/*
key.k.name = (char *) name;
if ((node = rbfind(grcache_byname, &key)) != NULL) {
- item = (struct cache_item *) node->data;
+ item = node->data;
goto done;
}
/*
}
if ((node = rbinsert(grcache, item)) != NULL) {
/* Already exists. */
- item = (struct cache_item *) node->data;
+ item = node->data;
if (item->d.gr == NULL) {
/* Negative cache entry, replace with ours. */
sudo_gr_delref_item(item);
key.k.name = pw->pw_name;
if ((node = rbfind(grlist_cache, &key)) != NULL) {
- item = (struct cache_item *) node->data;
+ item = node->data;
goto done;
}
/*