Lines Matching refs:cred_warning
134 cred_warning_list_t *cred_warning;
167 if (cred_warning = find_cred_warning(argp->warning_name)) {
169 mutex_lock(&cred_warning->cwm);
170 cred_warning->cred_exp_time = argp->cred_exp_time;
171 cred_warning->cred_warn_time = argp->cred_exp_time
173 mutex_unlock(&cred_warning->cwm);
175 cred_warning = (cred_warning_list_t *)malloc(
177 if (cred_warning == NULL) {
182 (void) memset((char *)cred_warning, 0,
184 cred_warning->cred_exp_time = argp->cred_exp_time;
185 cred_warning->cred_warn_time = argp->cred_exp_time
187 cred_warning->warn_name = strdup(argp->warning_name);
188 if (cred_warning->warn_name == NULL) {
189 free(cred_warning);
194 mutex_init(&cred_warning->cwm, USYNC_THREAD, NULL);
195 cred_warning->next = cred_warning_list;
196 cred_warning_list = cred_warning;
244 cred_warning_list_t *cred_warning, *prev;
246 for (prev = NULL, cred_warning = cred_warning_list;
247 cred_warning != NULL; prev = cred_warning,
248 cred_warning = cred_warning->next) {
249 if (strcmp(cred_warning->warn_name, warning_name) == 0) {
251 cred_warning_list = cred_warning->next;
253 prev->next = cred_warning->next;
255 free(cred_warning->warn_name);
256 free(cred_warning);