From f6c59721c1d7f228060f40b6a4c985e3f4b9a5fd Mon Sep 17 00:00:00 2001 From: Xavier Santolaria Date: Tue, 20 Dec 2005 18:17:02 +0000 Subject: cvs_buf_putc() and cvs_buf_write_*() functions cannot fail anymore; --- usr.bin/cvs/diff.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'usr.bin/cvs/diff.c') 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"); -- cgit v1.2.3