summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2018-06-24 18:39:58 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2018-06-24 18:39:58 +0000
commite2ea977f0d12823a73d7acfd02b1ed8f2f1441f9 (patch)
tree1843995b8665dd665cc734ac2ad94e8a51606b8c /usr.bin
parentaf285dd2c5904b2e88064a5bb51980b511e8c66f (diff)
Fix a quirk noticed by espie@: let "jot" without any argument do the
same as "jot -", to match the description in the manual page. Very similar patch independently developed by tb@. OK tb@ espie@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/jot/jot.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/jot/jot.c b/usr.bin/jot/jot.c
index 499840d9330..1f7aacd1dcf 100644
--- a/usr.bin/jot/jot.c
+++ b/usr.bin/jot/jot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: jot.c,v 1.45 2018/01/13 15:43:39 tb Exp $ */
+/* $OpenBSD: jot.c,v 1.46 2018/06/24 18:39:57 schwarze Exp $ */
/* $NetBSD: jot.c,v 1.3 1994/12/02 20:29:43 pk Exp $ */
/*-
@@ -161,9 +161,7 @@ main(int argc, char *argv[])
if (prec == -1)
prec = 0;
}
- break;
case 0:
- usage();
break;
default:
errx(1, "Too many arguments. What do you mean by %s?",