summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/cmd.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-04-14 02:45:36 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-04-14 02:45:36 +0000
commite341626ecc5f97ac0da31c1465bb8f0d0a32b0e5 (patch)
tree0701325a40ac04a02233321c7007dd0aac1a440f /usr.bin/cvs/cmd.c
parent0e753ff5b41a1e62682b49974035397e8b97edab (diff)
remove a metric buttload of excessive ()
no binary change; ok ray
Diffstat (limited to 'usr.bin/cvs/cmd.c')
-rw-r--r--usr.bin/cvs/cmd.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/usr.bin/cvs/cmd.c b/usr.bin/cvs/cmd.c
index 220ed364257..74dfda1f82b 100644
--- a/usr.bin/cvs/cmd.c
+++ b/usr.bin/cvs/cmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd.c,v 1.42 2006/01/02 08:11:56 xsa Exp $ */
+/* $OpenBSD: cmd.c,v 1.43 2006/04/14 02:45:35 deraadt Exp $ */
/*
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
* All rights reserved.
@@ -175,28 +175,28 @@ cvs_startcmd(struct cvs_cmd *cmd, int argc, char **argv)
* these files.
*/
error = 0;
- if ((cmd->cmd_op != CVS_OP_CHECKOUT) &&
- (cmd->cmd_op != CVS_OP_EXPORT) &&
- (cmd->cmd_op != CVS_OP_IMPORT) &&
- (cmd->cmd_op != CVS_OP_INIT) &&
- (cmd->cmd_op != CVS_OP_RELEASE) &&
- (cmd->cmd_op != CVS_OP_VERSION)) {
+ if (cmd->cmd_op != CVS_OP_CHECKOUT &&
+ cmd->cmd_op != CVS_OP_EXPORT &&
+ cmd->cmd_op != CVS_OP_IMPORT &&
+ cmd->cmd_op != CVS_OP_INIT &&
+ cmd->cmd_op != CVS_OP_RELEASE &&
+ cmd->cmd_op != CVS_OP_VERSION) {
/* check for the CVS directory */
ret = stat(CVS_PATH_CVSDIR, &st);
- if (((ret == -1) && (errno == ENOENT)) || ((ret != -1) &&
- !(S_ISDIR(st.st_mode))))
+ if ((ret == -1 && errno == ENOENT) ||
+ (ret != -1 && !(S_ISDIR(st.st_mode))))
error |= MISSING_CVS_DIR;
/* check if the CVS/Entries file exists */
ret = stat(CVS_PATH_ENTRIES, &st);
- if (((ret == -1) && (errno == ENOENT)) || ((ret != -1) &&
- !(S_ISREG(st.st_mode))))
+ if ((ret == -1 && errno == ENOENT) ||
+ (ret != -1 && !(S_ISREG(st.st_mode))))
error |= MISSING_CVS_ENTRIES;
/* check if the CVS/Repository file exists */
ret = stat(CVS_PATH_REPOSITORY, &st);
- if (((ret == -1) && (errno == ENOENT)) || ((ret != -1) &&
- !(S_ISREG(st.st_mode))))
+ if ((ret == -1 && errno == ENOENT) ||
+ (ret != -1 && !(S_ISREG(st.st_mode))))
error |= MISSING_CVS_REPO;
}