summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/edit.c
diff options
context:
space:
mode:
authortobias <tobias@openbsd.org>2008-02-04 15:07:32 +0000
committertobias <tobias@openbsd.org>2008-02-04 15:07:32 +0000
commit37fdff3fa60fdd1baf6bc6082eee5bd7ac3b858c (patch)
tree350e7b1ef9932579794369472f743922e60b92d2 /usr.bin/cvs/edit.c
parentspecify that MakeWhatis and pkg-config fall outside the scope of this document (diff)
downloadwireguard-openbsd-37fdff3fa60fdd1baf6bc6082eee5bd7ac3b858c.tar.xz
wireguard-openbsd-37fdff3fa60fdd1baf6bc6082eee5bd7ac3b858c.zip
Added -k flag support for all commands which support it.
OK joris@
Diffstat (limited to 'usr.bin/cvs/edit.c')
-rw-r--r--usr.bin/cvs/edit.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/cvs/edit.c b/usr.bin/cvs/edit.c
index 209f9170041..c885436f9bb 100644
--- a/usr.bin/cvs/edit.c
+++ b/usr.bin/cvs/edit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: edit.c,v 1.42 2008/01/31 10:15:05 tobias Exp $ */
+/* $OpenBSD: edit.c,v 1.43 2008/02/04 15:07:33 tobias Exp $ */
/*
* Copyright (c) 2006, 2007 Xavier Santolaria <xsa@openbsd.org>
*
@@ -400,9 +400,8 @@ cvs_unedit_local(struct cvs_file *cf)
timebuf[strcspn(timebuf, "\n")] = '\0';
(void)xasprintf(&entry, "/%s/%s/%s/%s/%s",
- cf->file_name, rbuf, timebuf,
- (cf->file_ent->ce_tag) ? cf->file_ent->ce_tag : "",
- (cf->file_ent->ce_opts) ? cf->file_ent->ce_opts : "");
+ cf->file_name, rbuf, timebuf, cf->file_ent->ce_opts ? : "",
+ cf->file_ent->ce_tag ? : "");
cvs_ent_add(entlist, entry);