Lines Matching defs:dist
73 struct dpv_file_node *dist = dists;
105 if (dist == NULL) {
106 if ((dist = calloc(1, file_node_size)) == NULL)
108 dists = dist;
110 dist->next = calloc(1, file_node_size);
111 if (dist->next == NULL)
113 dist = dist->next;
117 if ((dist->path = malloc(span + 1)) == NULL)
119 snprintf(dist->path, span + 1, "%s", distributions);
120 dist->path[span] = '\0';
123 dist->name = strrchr(dist->path, '/');
124 if (dist->name == NULL)
125 dist->name = dist->path;
128 dist->length = count_files(dist->path);
129 if (dist->length < 0) {
172 while ((dist = dists) != NULL) {
173 dists = dist->next;
174 if (dist->path != NULL)
175 free(dist->path);
176 free(dist);