summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/annotate.c
diff options
context:
space:
mode:
authortobias <tobias@openbsd.org>2008-03-02 19:05:34 +0000
committertobias <tobias@openbsd.org>2008-03-02 19:05:34 +0000
commitaeaaf4a6d4457144b8913fa123ca6dda7b5f2733 (patch)
tree41ef0bdd08abde4f75eea9828f78bb0e93fcb3bf /usr.bin/cvs/annotate.c
parentUse a union to ensure alignment of the cmsg. (diff)
downloadwireguard-openbsd-aeaaf4a6d4457144b8913fa123ca6dda7b5f2733.tar.xz
wireguard-openbsd-aeaaf4a6d4457144b8913fa123ca6dda7b5f2733.zip
Print the right synopsis for commands on error (especially if commands
share the same function: (r)tag, etc.). ok joris
Diffstat (limited to 'usr.bin/cvs/annotate.c')
-rw-r--r--usr.bin/cvs/annotate.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/cvs/annotate.c b/usr.bin/cvs/annotate.c
index 935ef87c6e2..129eda59c18 100644
--- a/usr.bin/cvs/annotate.c
+++ b/usr.bin/cvs/annotate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: annotate.c,v 1.55 2008/02/10 10:21:42 joris Exp $ */
+/* $OpenBSD: annotate.c,v 1.56 2008/03/02 19:05:34 tobias Exp $ */
/*
* Copyright (c) 2007 Tobias Stoeckmann <tobias@openbsd.org>
* Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org>
@@ -84,7 +84,9 @@ cvs_annotate(int argc, char **argv)
cvs_specified_tag = optarg;
break;
default:
- fatal("%s", cvs_cmd_annotate.cmd_synopsis);
+ fatal("%s", cvs_cmdop == CVS_OP_ANNOTATE ?
+ cvs_cmd_annotate.cmd_synopsis :
+ cvs_cmd_rannotate.cmd_synopsis);
}
}