=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/add.c,v retrieving revision 1.51 retrieving revision 1.52 diff -c -r1.51 -r1.52 *** src/usr.bin/cvs/add.c 2006/05/30 21:32:52 1.51 --- src/usr.bin/cvs/add.c 2006/06/01 20:00:52 1.52 *************** *** 1,4 **** ! /* $OpenBSD: add.c,v 1.51 2006/05/30 21:32:52 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink * --- 1,4 ---- ! /* $OpenBSD: add.c,v 1.52 2006/06/01 20:00:52 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink * *************** *** 175,184 **** BUF *b; int added, l, stop; char *entry, revbuf[16], tbuf[32]; CVSENTRIES *entlist; if (cf->file_rcs != NULL) ! rcsnum_tostr(cf->file_rcs->rf_head, revbuf, sizeof(revbuf)); added = stop = 0; switch (cf->file_status) { --- 175,186 ---- BUF *b; int added, l, stop; char *entry, revbuf[16], tbuf[32]; + RCSNUM *head; CVSENTRIES *entlist; if (cf->file_rcs != NULL) ! rcsnum_tostr(rcs_head_get(cf->file_rcs), ! revbuf, sizeof(revbuf)); added = stop = 0; switch (cf->file_status) { *************** *** 216,222 **** xfree(entry); ! b = rcs_getrev(cf->file_rcs, cf->file_rcs->rf_head); if (b == NULL) fatal("cvs_add_local: failed to get HEAD"); --- 218,225 ---- xfree(entry); ! head = rcs_head_get(cf->file_rcs); ! b = rcs_getrev(cf->file_rcs, head); if (b == NULL) fatal("cvs_add_local: failed to get HEAD");