diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-12-30 16:42:14 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-12-30 16:42:14 +0000 |
commit | 9711d6a54a5010b41ccb87223be61e5b600d8e84 (patch) | |
tree | f1e29b184b7ddccdc822ce7fab03895f0ee3f2d3 /usr.bin | |
parent | 673dc1770ba9eaeb897304edbc1eea345941c822 (diff) |
minor style nits;
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/cvs/annotate.c | 4 | ||||
-rw-r--r-- | usr.bin/cvs/getlog.c | 13 | ||||
-rw-r--r-- | usr.bin/cvs/release.c | 5 | ||||
-rw-r--r-- | usr.bin/cvs/update.c | 6 |
4 files changed, 13 insertions, 15 deletions
diff --git a/usr.bin/cvs/annotate.c b/usr.bin/cvs/annotate.c index 065dd6c7f97..a0bdc9be7b2 100644 --- a/usr.bin/cvs/annotate.c +++ b/usr.bin/cvs/annotate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: annotate.c,v 1.25 2005/12/30 02:03:28 joris Exp $ */ +/* $OpenBSD: annotate.c,v 1.26 2005/12/30 16:42:13 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -101,7 +101,7 @@ static int cvs_annotate_pre_exec(struct cvsroot *root) { if (root->cr_method != CVS_METHOD_LOCAL) { - if (usehead) + if (usehead == 1) cvs_sendarg(root, "-f", 0); if (rev != NULL) { diff --git a/usr.bin/cvs/getlog.c b/usr.bin/cvs/getlog.c index 1406f06ab2a..02ae6739c68 100644 --- a/usr.bin/cvs/getlog.c +++ b/usr.bin/cvs/getlog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getlog.c,v 1.49 2005/12/30 02:03:28 joris Exp $ */ +/* $OpenBSD: getlog.c,v 1.50 2005/12/30 16:42:13 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -134,16 +134,15 @@ static int cvs_getlog_pre_exec(struct cvsroot *root) { if (root->cr_method != CVS_METHOD_LOCAL) { - if (log_honly) + if (log_honly == 1) cvs_sendarg(root, "-h", 0); - if (log_notags) + if (log_notags == 1) cvs_sendarg(root, "-N", 0); - if (log_rfonly) + if (log_rfonly == 1) cvs_sendarg(root, "-R", 0); - if (log_lhonly) + if (log_lhonly == 1) cvs_sendarg(root, "-t", 0); } - return (0); } @@ -224,7 +223,7 @@ cvs_getlog_local(CVSFILE *cf, void *arg) cvs_rcs_getpath(cf, rcspath, sizeof(rcspath)); - if (log_rfonly) { + if (log_rfonly == 1) { cvs_printf("%s\n", rcspath); return (0); } diff --git a/usr.bin/cvs/release.c b/usr.bin/cvs/release.c index d75447f8ec7..8aa2f11da56 100644 --- a/usr.bin/cvs/release.c +++ b/usr.bin/cvs/release.c @@ -1,4 +1,4 @@ -/* $OpenBSD: release.c,v 1.26 2005/12/30 02:03:28 joris Exp $ */ +/* $OpenBSD: release.c,v 1.27 2005/12/30 16:42:13 xsa Exp $ */ /* * Copyright (c) 2005 Xavier Santolaria <xsa@openbsd.org> * All rights reserved. @@ -95,10 +95,9 @@ static int cvs_release_pre_exec(struct cvsroot *root) { if (root->cr_method != CVS_METHOD_LOCAL) { - if (dflag) + if (dflag == 1) cvs_sendarg(root, "-d", 0); } - return (0); } diff --git a/usr.bin/cvs/update.c b/usr.bin/cvs/update.c index 141dea3fa4d..52e4c8d822e 100644 --- a/usr.bin/cvs/update.c +++ b/usr.bin/cvs/update.c @@ -1,4 +1,4 @@ -/* $OpenBSD: update.c,v 1.49 2005/12/30 02:03:28 joris Exp $ */ +/* $OpenBSD: update.c,v 1.50 2005/12/30 16:42:13 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -136,10 +136,10 @@ cvs_update_pre_exec(struct cvsroot *root) if (cvs_cmd_update.cmd_flags & CVS_CMD_PRUNEDIRS) cvs_sendarg(root, "-P", 0); - if (Aflag) + if (Aflag == 1) cvs_sendarg(root, "-A", 0); - if (dflag) + if (dflag == 1) cvs_sendarg(root, "-d", 0); if (rev != NULL) { |