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 |
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':
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