diff options
author | 2008-07-08 12:54:13 +0000 | |
---|---|---|
committer | 2008-07-08 12:54:13 +0000 | |
commit | 4cd27328cc0718322ecd2c61608a4cb987acb9c5 (patch) | |
tree | c2c099b358525d38545859dbde8996c0ccf32525 /usr.bin/cvs/commit.c | |
parent | use cf->fd in cvs_remote_sendfile() instead of using a local (diff) | |
download | wireguard-openbsd-4cd27328cc0718322ecd2c61608a4cb987acb9c5.tar.xz wireguard-openbsd-4cd27328cc0718322ecd2c61608a4cb987acb9c5.zip |
make these compile cleanly
Diffstat (limited to 'usr.bin/cvs/commit.c')
-rw-r--r-- | usr.bin/cvs/commit.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c index 810cf4b2191..b164f2baad4 100644 --- a/usr.bin/cvs/commit.c +++ b/usr.bin/cvs/commit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commit.c,v 1.143 2008/06/15 04:38:52 tobias Exp $ */ +/* $OpenBSD: commit.c,v 1.144 2008/07/08 12:54:13 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org> @@ -480,6 +480,7 @@ cvs_commit_local(struct cvs_file *cf) nrev = RCS_HEAD_REV; crev = NULL; rrev = NULL; + d = NULL; if (cf->file_rcs != NULL && cf->file_rcs->rf_branch != NULL) { rcsnum_free(cf->file_rcs->rf_branch); @@ -704,12 +705,18 @@ cvs_commit_local(struct cvs_file *cf) case FILE_REMOVED: histtype = CVS_HISTORY_COMMIT_REMOVED; break; + default: + histtype = -1; + break; } if (crev != NULL) rcsnum_free(crev); - cvs_history_add(histtype, cf, NULL); + if (histtype != -1) + cvs_history_add(histtype, cf, NULL); + else + cvs_log(LP_NOTICE, "histtype was -1 for %s", cf->file_path); } static BUF * |