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.

(cherry picked from commit 15881823b9)
This commit is contained in:
Rick Macklem 2022-05-05 16:22:12 -07:00
parent 146e1dbbf6
commit 79eb3b3d3f
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

@ -181,7 +181,7 @@ main(int argc, char **argv)
debug = 0;
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':