Lines Matching defs:classes
246 * dsym_free_classes(): frees the classes allocated by dsym_parse_classes()
248 * input: dhcp_classes_t *: pointer to structure containing classes to free
253 dsym_free_classes(dhcp_classes_t *classes)
258 if (classes->dc_names == NULL) {
262 for (i = 0; i < classes->dc_cnt; i++) {
263 free(classes->dc_names[i]);
266 free(classes->dc_names);
267 classes->dc_names = NULL;
268 classes->dc_cnt = 0;
273 * the list of vendor classes
276 * dhcp_classes_t *: pointer to the classes structure
285 char **classes = NULL;
335 classes = realloc(classes_ret->dc_names,
337 if (classes == NULL ||
338 (classes[classes_ret->dc_cnt] = strdup(cp))
343 classes_ret->dc_names = classes;