diff mbox series

nfs-utils: fixup statd testing simulator host arg

Message ID e8a429e2957d3771031d6d944981eaa16ea9feab.1731514372.git.bcodding@redhat.com (mailing list archive)
State New
Headers show
Series nfs-utils: fixup statd testing simulator host arg | expand

Commit Message

Benjamin Coddington Nov. 13, 2024, 4:13 p.m. UTC
The getopt setup for the host arg was not expecing a value, update it as
expected

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
---
 tests/nsm_client/nsm_client.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


base-commit: 38b46cb1f28737069d7887b5ccf7001ba4a4ff59
prerequisite-patch-id: 8e580f79b2ce8a4c0771e250fcc7c67f943b309b

Comments

Steve Dickson Nov. 20, 2024, 8:50 p.m. UTC | #1
On 11/13/24 11:13 AM, Benjamin Coddington wrote:
> The getopt setup for the host arg was not expecing a value, update it as
> expected
> 
> Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Committed... (tag: nfs-utils-2-8-2-rc2)

steved.
> ---
>   tests/nsm_client/nsm_client.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/nsm_client/nsm_client.c b/tests/nsm_client/nsm_client.c
> index 8dc059179806..b757209c3769 100644
> --- a/tests/nsm_client/nsm_client.c
> +++ b/tests/nsm_client/nsm_client.c
> @@ -72,7 +72,7 @@ static struct timeval retrans_interval =
>   static struct option longopts[] =
>   {
>   	{ "help", 0, 0, 'h' },
> -	{ "host", 0, 0, 'H' },
> +	{ "host", 1, 0, 'H' },
>   	{ "name", 1, 0, 'n' },
>   	{ "program", 1, 0, 'P' },
>   	{ "version", 1, 0, 'v' },
> @@ -136,7 +136,7 @@ main(int argc, char **argv)
>   	my_name[0] = '\0';
>   	host[0] = '\0';
>   
> -	while ((arg = getopt_long(argc, argv, "hHn:P:v:", longopts,
> +	while ((arg = getopt_long(argc, argv, "hH:n:P:v:", longopts,
>   				  NULL)) != EOF) {
>   		switch (arg) {
>   		case 'H':
> 
> base-commit: 38b46cb1f28737069d7887b5ccf7001ba4a4ff59
> prerequisite-patch-id: 8e580f79b2ce8a4c0771e250fcc7c67f943b309b
Steve Dickson Nov. 20, 2024, 8:50 p.m. UTC | #2
On 11/13/24 11:13 AM, Benjamin Coddington wrote:
> The getopt setup for the host arg was not expecing a value, update it as
> expected
> 
> Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Committed... (tag: nfs-utils-2-8-2-rc2)

steved.
> ---
>   tests/nsm_client/nsm_client.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/nsm_client/nsm_client.c b/tests/nsm_client/nsm_client.c
> index 8dc059179806..b757209c3769 100644
> --- a/tests/nsm_client/nsm_client.c
> +++ b/tests/nsm_client/nsm_client.c
> @@ -72,7 +72,7 @@ static struct timeval retrans_interval =
>   static struct option longopts[] =
>   {
>   	{ "help", 0, 0, 'h' },
> -	{ "host", 0, 0, 'H' },
> +	{ "host", 1, 0, 'H' },
>   	{ "name", 1, 0, 'n' },
>   	{ "program", 1, 0, 'P' },
>   	{ "version", 1, 0, 'v' },
> @@ -136,7 +136,7 @@ main(int argc, char **argv)
>   	my_name[0] = '\0';
>   	host[0] = '\0';
>   
> -	while ((arg = getopt_long(argc, argv, "hHn:P:v:", longopts,
> +	while ((arg = getopt_long(argc, argv, "hH:n:P:v:", longopts,
>   				  NULL)) != EOF) {
>   		switch (arg) {
>   		case 'H':
> 
> base-commit: 38b46cb1f28737069d7887b5ccf7001ba4a4ff59
> prerequisite-patch-id: 8e580f79b2ce8a4c0771e250fcc7c67f943b309b
diff mbox series

Patch

diff --git a/tests/nsm_client/nsm_client.c b/tests/nsm_client/nsm_client.c
index 8dc059179806..b757209c3769 100644
--- a/tests/nsm_client/nsm_client.c
+++ b/tests/nsm_client/nsm_client.c
@@ -72,7 +72,7 @@  static struct timeval retrans_interval =
 static struct option longopts[] =
 {
 	{ "help", 0, 0, 'h' },
-	{ "host", 0, 0, 'H' },
+	{ "host", 1, 0, 'H' },
 	{ "name", 1, 0, 'n' },
 	{ "program", 1, 0, 'P' },
 	{ "version", 1, 0, 'v' },
@@ -136,7 +136,7 @@  main(int argc, char **argv)
 	my_name[0] = '\0';
 	host[0] = '\0';
 
-	while ((arg = getopt_long(argc, argv, "hHn:P:v:", longopts,
+	while ((arg = getopt_long(argc, argv, "hH:n:P:v:", longopts,
 				  NULL)) != EOF) {
 		switch (arg) {
 		case 'H':