Lines Matching defs:list
60 free_replica(struct replica *list, int count)
65 if (list[i].host)
66 free(list[i].host);
67 if (list[i].path)
68 free(list[i].path);
70 free(list);
76 struct replica *list = NULL;
106 * and grab the address and store it in the list
112 if ((list = realloc(list, (*count + 1) *
115 bzero(&list[(*count)++], sizeof (struct replica));
117 list[*count-1].host = strdup(proot);
118 if (!list[*count-1].host)
145 if ((list = realloc(list, (*count + 1) *
148 bzero(&list[(*count)++],
150 list[*count-1].host = strdup(proot);
151 if (!list[*count-1].host)
157 list[i].path = strdup(x);
158 if (!list[i].path)
169 * else grab the address and store it in the list
178 if ((list = realloc(list, (*count + 1) *
181 bzero(&list[(*count)++],
183 list[*count-1].host = strdup(proot);
184 if (!list[*count-1].host)
199 return (list);
202 if (list)
203 free_replica(list, *count);