mirror of
https://gitlab.com/chrony/chrony.git
synced 2026-03-11 00:59:38 -04:00
client: fix -v option to not require argument
Reported-by: Bryan Christianson <bryan@whatroute.net>
Fixes: d622b222a9 ("chronyc: add wider output option")
This commit is contained in:
2
client.c
2
client.c
@@ -3656,7 +3656,7 @@ main(int argc, char **argv)
|
|||||||
optind = 1;
|
optind = 1;
|
||||||
|
|
||||||
/* Parse short command-line options */
|
/* Parse short command-line options */
|
||||||
while ((opt = getopt(argc, argv, "+46acdef:h:mnNp:u:v:w")) != -1) {
|
while ((opt = getopt(argc, argv, "+46acdef:h:mnNp:u:vw")) != -1) {
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
case '4':
|
case '4':
|
||||||
case '6':
|
case '6':
|
||||||
|
|||||||
Reference in New Issue
Block a user