rpc.tlsclntd, rpc.tlsservd: Fix getopt_long argument

The "C" option in the argument to getopt_long() was
missing a ":" for both rpc.tlsclntd.c and rpc.tlsservd.c.
This patch fixes this.

MFC after:	2 weeks
This commit is contained in:
Rick Macklem 2022-05-05 16:22:12 -07:00
parent 712aac1389
commit 15881823b9
2 changed files with 3 additions and 3 deletions

View file

@ -154,8 +154,8 @@ main(int argc, char **argv)
rpctls_ssl_usec = tm.tv_usec;
rpctls_verbose = false;
while ((ch = getopt_long(argc, argv, "CD:dl:mp:r:v", longopts, NULL)) !=
-1) {
while ((ch = getopt_long(argc, argv, "C:D:dl:mp:r:v", longopts,
NULL)) != -1) {
switch (ch) {
case 'C':
rpctls_ciphers = optarg;

View file

@ -180,7 +180,7 @@ main(int argc, char **argv)
}
rpctls_verbose = false;
while ((ch = getopt_long(argc, argv, "CD:dhl:n:mp:r:uvWw", longopts,
while ((ch = getopt_long(argc, argv, "C:D:dhl:n:mp:r:uvWw", longopts,
NULL)) != -1) {
switch (ch) {
case 'C':