Lines Matching defs:dist
71 struct dpv_file_node *dist = dists;
103 if (dist == NULL) {
104 if ((dist = calloc(1, file_node_size)) == NULL)
106 dists = dist;
108 dist->next = calloc(1, file_node_size);
109 if (dist->next == NULL)
111 dist = dist->next;
115 if ((dist->path = malloc(span + 1)) == NULL)
117 snprintf(dist->path, span + 1, "%s", distributions);
118 dist->path[span] = '\0';
121 dist->name = strrchr(dist->path, '/');
122 if (dist->name == NULL)
123 dist->name = dist->path;
126 dist->length = count_files(dist->path);
127 if (dist->length < 0) {
170 while ((dist = dists) != NULL) {
171 dists = dist->next;
172 if (dist->path != NULL)
173 free(dist->path);
174 free(dist);