diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2021-04-15 13:33:18 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2021-04-15 13:33:18 +0000 |
commit | f7aa1e95ae8efc1ffe5bc1ab2b77bf9fb6149b5b (patch) | |
tree | 86edc49b8f9bf03b8798029e6979e25a26982927 /usr.sbin/rpki-client | |
parent | 87bdbecedeaf84d14b1f880018a51f2b3e4a41fa (diff) |
Make rpki-client -V output nicer.
OK job@, kn@, deraadt@
Diffstat (limited to 'usr.sbin/rpki-client')
-rw-r--r-- | usr.sbin/rpki-client/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/rpki-client/main.c b/usr.sbin/rpki-client/main.c index 417f4626224..4e56c3f2b5e 100644 --- a/usr.sbin/rpki-client/main.c +++ b/usr.sbin/rpki-client/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.136 2021/04/14 18:05:47 benno Exp $ */ +/* $OpenBSD: main.c,v 1.137 2021/04/15 13:33:17 claudio Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -675,7 +675,8 @@ main(int argc, char *argv[]) verbose++; break; case 'V': - errx(0, "version: %s", RPKI_VERSION); + fprintf(stderr, "rpki-client %s\n", RPKI_VERSION); + return 0; default: goto usage; } |