=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/version.c,v retrieving revision 1.19 retrieving revision 1.20 diff -c -r1.19 -r1.20 *** src/usr.bin/cvs/version.c 2006/01/02 08:11:56 1.19 --- src/usr.bin/cvs/version.c 2006/04/14 02:45:35 1.20 *************** *** 1,4 **** ! /* $OpenBSD: version.c,v 1.19 2006/01/02 08:11:56 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: version.c,v 1.20 2006/04/14 02:45:35 deraadt Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. *************** *** 53,63 **** static int cvs_version_pre_exec(struct cvsroot *root) { ! if ((root != NULL) && (root->cr_method != CVS_METHOD_LOCAL)) printf("Client: "); cvs_printf("%s\n", CVS_VERSION); ! if ((root != NULL) && (root->cr_method != CVS_METHOD_LOCAL)) { cvs_printf("Server: %s\n", root->cr_version == NULL ? "(unknown)" : root->cr_version); } --- 53,63 ---- static int cvs_version_pre_exec(struct cvsroot *root) { ! if (root != NULL && root->cr_method != CVS_METHOD_LOCAL) printf("Client: "); cvs_printf("%s\n", CVS_VERSION); ! if (root != NULL && root->cr_method != CVS_METHOD_LOCAL) { cvs_printf("Server: %s\n", root->cr_version == NULL ? "(unknown)" : root->cr_version); }