summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/diff.c
diff options
context:
space:
mode:
authorjoris <joris@openbsd.org>2017-06-01 08:08:24 +0000
committerjoris <joris@openbsd.org>2017-06-01 08:08:24 +0000
commit4dcde51379711c241d4d9b93f9d4e9eae2d51f3d (patch)
tree22632a1596b31f59c0f619e787bb1833396c8538 /usr.bin/cvs/diff.c
parentupdate currency exchange rates; (diff)
downloadwireguard-openbsd-4dcde51379711c241d4d9b93f9d4e9eae2d51f3d.tar.xz
wireguard-openbsd-4dcde51379711c241d4d9b93f9d4e9eae2d51f3d.zip
Stop looking at current_cvsroot->cr_method to figure out if we're remote or not.
Instead use cvsroot_is_local() and cvsroot_is_remote().
Diffstat (limited to 'usr.bin/cvs/diff.c')
-rw-r--r--usr.bin/cvs/diff.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/cvs/diff.c b/usr.bin/cvs/diff.c
index d9b3c83452a..79af5b07f3f 100644
--- a/usr.bin/cvs/diff.c
+++ b/usr.bin/cvs/diff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff.c,v 1.162 2016/10/13 20:51:25 fcambus Exp $ */
+/* $OpenBSD: diff.c,v 1.163 2017/06/01 08:08:24 joris Exp $ */
/*
* Copyright (c) 2008 Tobias Stoeckmann <tobias@openbsd.org>
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
@@ -216,7 +216,7 @@ cvs_diff(int argc, char **argv)
flags |= CR_REPO;
}
- if (current_cvsroot->cr_method != CVS_METHOD_LOCAL) {
+ if (cvsroot_is_remote()) {
cvs_client_connect_to_server();
cr.fileproc = cvs_client_sendfile;
@@ -277,15 +277,14 @@ cvs_diff(int argc, char **argv)
diff_rev1 = diff_rev2 = NULL;
- if (cvs_cmdop == CVS_OP_DIFF ||
- current_cvsroot->cr_method == CVS_METHOD_LOCAL) {
+ if (cvs_cmdop == CVS_OP_DIFF || cvsroot_is_local()) {
if (argc > 0)
cvs_file_run(argc, argv, &cr);
else
cvs_file_run(1, &arg, &cr);
}
- if (current_cvsroot->cr_method != CVS_METHOD_LOCAL) {
+ if (cvsroot_is_remote()) {
cvs_client_send_files(argv, argc);
cvs_client_senddir(".");