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/import.c | |
parent | 0e753ff5b41a1e62682b49974035397e8b97edab (diff) |
remove a metric buttload of excessive ()
no binary change; ok ray
Diffstat (limited to 'usr.bin/cvs/import.c')
-rw-r--r-- | usr.bin/cvs/import.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/cvs/import.c b/usr.bin/cvs/import.c index c364eaa5920..5aa7acbf41e 100644 --- a/usr.bin/cvs/import.c +++ b/usr.bin/cvs/import.c @@ -1,4 +1,4 @@ -/* $OpenBSD: import.c,v 1.42 2006/04/05 01:38:55 ray Exp $ */ +/* $OpenBSD: import.c,v 1.43 2006/04/14 02:45:35 deraadt Exp $ */ /* * Copyright (c) 2004 Joris Vink <joris@openbsd.org> * All rights reserved. @@ -105,8 +105,8 @@ cvs_import_init(struct cvs_cmd *cmd, int argc, char **argv, int *arg) if (argc != 3) return (CVS_EX_USAGE); - if ((imp_brnum == NULL) && - ((imp_brnum = rcsnum_parse(CVS_IMPORT_DEFBRANCH)) == NULL)) + if (imp_brnum == NULL && + (imp_brnum = rcsnum_parse(CVS_IMPORT_DEFBRANCH)) == NULL) fatal("cvs_import_init: rcsnum_parse failed"); module = argv[0]; @@ -203,7 +203,7 @@ cvs_import_remote(CVSFILE *cf, void *arg) if (dflag == 1) { ctime_r(&(cf->cf_mtime), date); sz = strlen(date); - if ((sz > 0) && (date[sz - 1] == '\n')) + if (sz > 0 && date[sz - 1] == '\n') date[--sz] = '\0'; cvs_sendreq(root, CVS_REQ_CHECKINTIME, date); } @@ -355,7 +355,7 @@ cvs_import_local(CVSFILE *cf, void *arg) /* add the vendor tag and release tag as symbols */ rcs_close(rf); - if ((dflag ==1) && (utimes(rpath, ts) == -1)) + if (dflag ==1 && utimes(rpath, ts) == -1) cvs_log(LP_ERRNO, "failed to timestamp RCS file"); return (0); |