diff options
Diffstat (limited to 'src/back-shr.c')
-rw-r--r-- | src/back-shr.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/back-shr.c b/src/back-shr.c index 938ca7f..605d939 100644 --- a/src/back-shr.c +++ b/src/back-shr.c @@ -227,12 +227,12 @@ backend_shr_add_strlist(char ***strlist, const char *value) } /* Set or unset the entry using information in the callback data. */ -void +static void backend_shr_set_entry(Slapi_Entry *e, struct backend_set_data *set_data) { backend_set_entry(e, set_data); } -int +static int backend_shr_set_entry_cb(Slapi_Entry *e, void *set_data) { backend_shr_set_entry(e, set_data); @@ -240,7 +240,7 @@ backend_shr_set_entry_cb(Slapi_Entry *e, void *set_data) } /* Set or unset the named entry using information in the callback data. */ -void +static void backend_shr_set_config_entry_set_one_dn(struct plugin_state *state, const char *dn, struct backend_set_data *set_data) @@ -271,7 +271,7 @@ backend_shr_set_config_entry_set_one_dn(struct plugin_state *state, /* Check if the given entry is somewhere beneath the NDN and matches the * filter. */ -bool_t +static bool_t backend_shr_entry_matches(Slapi_PBlock *pb, Slapi_Entry *e, const char *containing_ndn, int scope, const char *check_filter) @@ -385,6 +385,8 @@ backend_shr_set_config_entry_add(struct plugin_state *state, Slapi_Entry *e, NULL); slapi_free_search_results_internal(pb); } + /* Warn if we didn't put anything into the set. */ + backend_check_empty(state, set_data->group, set_data->set); /* Clean up. */ slapi_pblock_destroy(pb); return 0; |