summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/diff.c
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2005-12-20 18:17:02 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2005-12-20 18:17:02 +0000
commitf6c59721c1d7f228060f40b6a4c985e3f4b9a5fd (patch)
tree25b0bf67430fdb4f4c922271c3584a210855baa3 /usr.bin/cvs/diff.c
parent41284a9ec5c2b50b0db908cb2f5412d1b9f00662 (diff)
cvs_buf_putc() and cvs_buf_write_*() functions cannot fail anymore;
Diffstat (limited to 'usr.bin/cvs/diff.c')
-rw-r--r--usr.bin/cvs/diff.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.bin/cvs/diff.c b/usr.bin/cvs/diff.c
index 019ae38148b..6b833013ba4 100644
--- a/usr.bin/cvs/diff.c
+++ b/usr.bin/cvs/diff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff.c,v 1.71 2005/12/10 20:27:45 joris Exp $ */
+/* $OpenBSD: diff.c,v 1.72 2005/12/20 18:17:00 xsa Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
* All rights reserved.
@@ -675,11 +675,7 @@ cvs_diff_local(CVSFILE *cf, void *arg)
cvs_printf(" %s\n", diff_file);
strlcpy(path_tmp1, cvs_tmpdir, sizeof(path_tmp1));
strlcat(path_tmp1, "/diff1.XXXXXXXXXX", sizeof(path_tmp1));
- if (cvs_buf_write_stmp(b1, path_tmp1, 0600) == -1) {
- cvs_buf_free(b1);
- cvs_buf_free(b2);
- return (CVS_EX_DATA);
- }
+ cvs_buf_write_stmp(b1, path_tmp1, 0600);
cvs_buf_free(b1);
if (utimes(path_tmp1, (const struct timeval *)&tv) < 0)
cvs_log(LP_ERRNO, "error setting utimes");