diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-12-20 17:33:41 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-12-20 17:33:41 +0000 |
commit | d1390a476986dd9c145fa918987f7bf68eb782c3 (patch) | |
tree | 16a85a6b7a77884b402b6b6077e90c91109c3c76 /usr.bin/cvs/req.c | |
parent | 9d153918ba8e76a253254f65264e1d676fc392d3 (diff) |
cvs_buf_write() cannot fail here;
Diffstat (limited to 'usr.bin/cvs/req.c')
-rw-r--r-- | usr.bin/cvs/req.c | 9 |
1 files changed, 2 insertions, 7 deletions
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 <jfb@openbsd.org> * 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: |