diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-14 02:45:36 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-14 02:45:36 +0000 |
commit | e341626ecc5f97ac0da31c1465bb8f0d0a32b0e5 (patch) | |
tree | 0701325a40ac04a02233321c7007dd0aac1a440f /usr.bin/cvs/buf.c | |
parent | 0e753ff5b41a1e62682b49974035397e8b97edab (diff) |
remove a metric buttload of excessive ()
no binary change; ok ray
Diffstat (limited to 'usr.bin/cvs/buf.c')
-rw-r--r-- | usr.bin/cvs/buf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/buf.c b/usr.bin/cvs/buf.c index 3e8dc28f23f..239e25e3552 100644 --- a/usr.bin/cvs/buf.c +++ b/usr.bin/cvs/buf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: buf.c,v 1.48 2006/04/13 19:11:30 joris Exp $ */ +/* $OpenBSD: buf.c,v 1.49 2006/04/14 02:45:35 deraadt Exp $ */ /* * Copyright (c) 2003 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -344,7 +344,7 @@ cvs_buf_write(BUF *b, const char *path, mode_t mode) int fd; open: if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, mode)) == -1) { - if ((errno == EACCES) && (unlink(path) != -1)) + if (errno == EACCES && unlink(path) != -1) goto open; else fatal("open: `%s': %s", path, strerror(errno)); |