diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2007-01-13 15:46:00 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2007-01-13 15:46:00 +0000 |
commit | 33da486f0b07596f8124fff0c7bac44afd3859d0 (patch) | |
tree | 18293dab0910cec80e5fc8d26099505f43364b08 /usr.bin/cvs/add.c | |
parent | c8b3d5534051a076fe062300cf465e1d046d7d73 (diff) |
remove BUF * argument from cvs_checkout_file() it will
no longer be used, ever.
Diffstat (limited to 'usr.bin/cvs/add.c')
-rw-r--r-- | usr.bin/cvs/add.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/usr.bin/cvs/add.c b/usr.bin/cvs/add.c index cb9abda8a39..2606fd2b694 100644 --- a/usr.bin/cvs/add.c +++ b/usr.bin/cvs/add.c @@ -1,4 +1,4 @@ -/* $OpenBSD: add.c,v 1.68 2007/01/12 19:28:12 joris Exp $ */ +/* $OpenBSD: add.c,v 1.69 2007/01/13 15:45:59 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * Copyright (c) 2005, 2006 Xavier Santolaria <xsa@openbsd.org> @@ -246,7 +246,6 @@ add_directory(struct cvs_file *cf) static void add_file(struct cvs_file *cf) { - BUF *b; int added, stop; char revbuf[16]; RCSNUM *head; @@ -274,13 +273,9 @@ add_file(struct cvs_file *cf) /* Restore the file. */ head = rcs_head_get(cf->file_rcs); - b = rcs_getrev(cf->file_rcs, head); + cvs_checkout_file(cf, head, 0); rcsnum_free(head); - if (b == NULL) - fatal("cvs_add_local: failed to get HEAD"); - - cvs_checkout_file(cf, head, b, 0); cvs_printf("U %s\n", cf->file_path); cvs_log(LP_NOTICE, "%s, version %s, resurrected", |