Lines Matching defs:pref
33 /* Parse one line. Return result in pref and val */
36 char *p, *pref, *val;
51 if ((pref = strtok(p, " =")) == NULL)
56 *R_pref = pref;
67 char *pref, *val;
80 /* parse and return pref and value */
81 if ((getpref(buf, &pref, &val)) != 0)
85 /* now see if its a correct pref */
86 while(ldap_prefs[i].pref != NULL) {
87 if ((strcmp(ldap_prefs[i].name, pref)) == 0) {
88 /* ok, found a valid pref */
96 *((char **)(ldap_prefs[i].pref)) = val;
99 *((int *)(ldap_prefs[i].pref)) = atoi(val);
101 /* ok, we have string to int mapping for this pref
104 while(prefs_array[j].pref != NULL) {
105 if (((strcmp(prefs_array[j].pref, pref)) == 0) &&
108 *((int *)(ldap_prefs[i].pref)) = prefs_array[j].value;
117 if (ldap_prefs[i].pref == NULL)
118 LOG(log_error, logtype_afpd,"afp_ldap.conf: Unknown option: \"%s\"", pref);
125 while(ldap_prefs[i].pref != NULL) {