From d1390a476986dd9c145fa918987f7bf68eb782c3 Mon Sep 17 00:00:00 2001 From: Xavier Santolaria Date: Tue, 20 Dec 2005 17:33:41 +0000 Subject: cvs_buf_write() cannot fail here; --- usr.bin/cvs/req.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'usr.bin/cvs') diff --git a/usr.bin/cvs/req.c b/usr.bin/cvs/req.c index 749143dfd04..648198a3443 100644 --- a/usr.bin/cvs/req.c +++ b/usr.bin/cvs/req.c @@ -1,4 +1,4 @@ -/* $OpenBSD: req.c,v 1.34 2005/12/10 20:27:45 joris Exp $ */ +/* $OpenBSD: req.c,v 1.35 2005/12/20 17:33:40 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. @@ -428,12 +428,7 @@ cvs_req_filestate(int reqid, char *line) return (-1); /* write the file */ - if (cvs_buf_write(fdata, line, fmode) < 0) { - cvs_log(LP_ERR, "failed to create file %s", line); - cvs_buf_free(fdata); - return (-1); - } - + cvs_buf_write(fdata, line, fmode); cvs_buf_free(fdata); break; case CVS_REQ_ISMODIFIED: -- cgit v1.2.3