summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs
diff options
context:
space:
mode:
authorxsa <xsa@openbsd.org>2005-07-20 16:14:55 +0000
committerxsa <xsa@openbsd.org>2005-07-20 16:14:55 +0000
commit5f63ceeed6df0e36098b8cad0a405ae83e93f46e (patch)
tree14d50515eba92fe91675c4e928f9df8b565bb6a1 /usr.bin/cvs
parentUpdate to zlib 1.2.3; OK deraadt@ (diff)
downloadwireguard-openbsd-5f63ceeed6df0e36098b8cad0a405ae83e93f46e.tar.xz
wireguard-openbsd-5f63ceeed6df0e36098b8cad0a405ae83e93f46e.zip
no need to append strerror(errno) in error msg if we use LP_ERRNO code;
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r--usr.bin/cvs/buf.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/cvs/buf.c b/usr.bin/cvs/buf.c
index 1f2ffdd9c57..a86061a6438 100644
--- a/usr.bin/cvs/buf.c
+++ b/usr.bin/cvs/buf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: buf.c,v 1.13 2005/07/07 14:27:57 joris Exp $ */
+/* $OpenBSD: buf.c,v 1.14 2005/07/20 16:14:55 xsa Exp $ */
/*
* Copyright (c) 2003 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -443,15 +443,14 @@ cvs_buf_write_stmp(BUF *b, char *template, mode_t mode)
fd = mkstemp(template);
if (fd == -1) {
- cvs_log(LP_ERRNO, "failed to mkstemp file `%s': %s",
- template, strerror(errno));
+ cvs_log(LP_ERRNO, "failed to mkstemp file `%s'", template);
return (-1);
}
ret = cvs_buf_write_fd(b, fd);
if (ret == -1) {
- cvs_log(LP_ERRNO, "failed to write to temp file `%s': %s",
- template, strerror(errno));
+ cvs_log(LP_ERRNO, "failed to write to temp file `%s'",
+ template);
(void)unlink(template);
}
(void)close(fd);