diff options
author | 2018-06-24 18:39:57 +0000 | |
---|---|---|
committer | 2018-06-24 18:39:57 +0000 | |
commit | 70414bbda415574e81c27be828fdc7113db55d72 (patch) | |
tree | 6ae3b38e724a121a393101aa54e068e0ad3f82cf | |
parent | document that %D is localbase in define-tag (diff) | |
download | wireguard-openbsd-70414bbda415574e81c27be828fdc7113db55d72.tar.xz wireguard-openbsd-70414bbda415574e81c27be828fdc7113db55d72.zip |
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@
-rw-r--r-- | usr.bin/jot/jot.c | 4 |
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?", |