version 1.104, 2015/04/04 14:19:10 |
version 1.105, 2015/08/20 22:32:41 |
|
|
current_list = NULL; |
current_list = NULL; |
} |
} |
|
|
ep = (CVSENTRIES *)xcalloc(1, sizeof(*ep)); |
ep = xcalloc(1, sizeof(*ep)); |
ep->cef_path = xstrdup(buf); |
ep->cef_path = xstrdup(buf); |
|
|
(void)xsnprintf(buf, sizeof(buf), "%s/%s", |
(void)xsnprintf(buf, sizeof(buf), "%s/%s", |
|
|
if (buf[0] == 'D' && buf[1] == '\0') |
if (buf[0] == 'D' && buf[1] == '\0') |
break; |
break; |
|
|
line = (struct cvs_ent_line *)xmalloc(sizeof(*line)); |
line = xmalloc(sizeof(*line)); |
line->buf = xstrdup(buf); |
line->buf = xstrdup(buf); |
TAILQ_INSERT_TAIL(&(ep->cef_ent), line, entries_list); |
TAILQ_INSERT_TAIL(&(ep->cef_ent), line, entries_list); |
} |
} |
|
|
|
|
(void)fclose(fp); |
(void)fclose(fp); |
|
|
l = (struct cvs_ent_line *)xmalloc(sizeof(*l)); |
l = xmalloc(sizeof(*l)); |
l->buf = xstrdup(line); |
l->buf = xstrdup(line); |
TAILQ_INSERT_TAIL(&(ep->cef_ent), l, entries_list); |
TAILQ_INSERT_TAIL(&(ep->cef_ent), l, entries_list); |
} |
} |