=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/entries.c,v retrieving revision 1.104 retrieving revision 1.105 diff -c -r1.104 -r1.105 *** src/usr.bin/cvs/entries.c 2015/04/04 14:19:10 1.104 --- src/usr.bin/cvs/entries.c 2015/08/20 22:32:41 1.105 *************** *** 1,4 **** ! /* $OpenBSD: entries.c,v 1.104 2015/04/04 14:19:10 stsp Exp $ */ /* * Copyright (c) 2006 Joris Vink * --- 1,4 ---- ! /* $OpenBSD: entries.c,v 1.105 2015/08/20 22:32:41 deraadt Exp $ */ /* * Copyright (c) 2006 Joris Vink * *************** *** 51,57 **** current_list = NULL; } ! ep = (CVSENTRIES *)xcalloc(1, sizeof(*ep)); ep->cef_path = xstrdup(buf); (void)xsnprintf(buf, sizeof(buf), "%s/%s", --- 51,57 ---- current_list = NULL; } ! ep = xcalloc(1, sizeof(*ep)); ep->cef_path = xstrdup(buf); (void)xsnprintf(buf, sizeof(buf), "%s/%s", *************** *** 72,78 **** if (buf[0] == 'D' && buf[1] == '\0') break; ! line = (struct cvs_ent_line *)xmalloc(sizeof(*line)); line->buf = xstrdup(buf); TAILQ_INSERT_TAIL(&(ep->cef_ent), line, entries_list); } --- 72,78 ---- if (buf[0] == 'D' && buf[1] == '\0') break; ! line = xmalloc(sizeof(*line)); line->buf = xstrdup(buf); TAILQ_INSERT_TAIL(&(ep->cef_ent), line, entries_list); } *************** *** 329,335 **** (void)fclose(fp); ! l = (struct cvs_ent_line *)xmalloc(sizeof(*l)); l->buf = xstrdup(line); TAILQ_INSERT_TAIL(&(ep->cef_ent), l, entries_list); } --- 329,335 ---- (void)fclose(fp); ! l = xmalloc(sizeof(*l)); l->buf = xstrdup(line); TAILQ_INSERT_TAIL(&(ep->cef_ent), l, entries_list); }