summaryrefslogtreecommitdiff
path: root/examples/Misc
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>2001-12-26 15:46:44 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>2001-12-26 15:46:44 +0000
commit0bc80fab4dc53994efbd511b22b0c86d59baff8c (patch)
tree3e074e160a2e59a236f10781cfcb0e071b49fac8 /examples/Misc
parentcde21c2507ace716fc833231662ff0f85ff13f5a (diff)
downloadATCD-0bc80fab4dc53994efbd511b22b0c86d59baff8c.tar.gz
ChangeLogTag:Wed Dec 26 09:07:45 2001 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
Diffstat (limited to 'examples/Misc')
-rw-r--r--examples/Misc/test_get_opt.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/Misc/test_get_opt.cpp b/examples/Misc/test_get_opt.cpp
index 756acb64ea7..69cf02a4059 100644
--- a/examples/Misc/test_get_opt.cpp
+++ b/examples/Misc/test_get_opt.cpp
@@ -20,32 +20,32 @@ main (int argc, ACE_TCHAR *argv[])
ACE_DEBUG ((LM_DEBUG, "got a\n"));
break;
case 'b':
- ACE_DEBUG ((LM_DEBUG, "got b with arg %s\n", get_opt.optarg));
+ ACE_DEBUG ((LM_DEBUG, "got b with arg %s\n", get_opt.opt_arg ()));
break;
case 'c':
ACE_DEBUG ((LM_DEBUG, "got c\n"));
break;
case 'd':
- ACE_DEBUG ((LM_DEBUG, "got d with arg %s\n", get_opt.optarg));
+ ACE_DEBUG ((LM_DEBUG, "got d with arg %s\n", get_opt.opt_arg ()));
break;
case 'e':
ACE_DEBUG ((LM_DEBUG, "got e\n"));
break;
case 'f':
- ACE_DEBUG ((LM_DEBUG, "got f with arg %s\n", get_opt.optarg));
+ ACE_DEBUG ((LM_DEBUG, "got f with arg %s\n", get_opt.opt_arg ()));
break;
case 'g':
ACE_DEBUG ((LM_DEBUG, "got g\n"));
break;
case 'h':
- ACE_DEBUG ((LM_DEBUG, "got h with arg %s\n", get_opt.optarg));
+ ACE_DEBUG ((LM_DEBUG, "got h with arg %s\n", get_opt.opt_arg ()));
break;
default:
ACE_DEBUG ((LM_DEBUG, "got %c, which is unrecognized!\n", c));
break;
}
- for (int i = get_opt.optind; i < argc; i++)
+ for (int i = get_opt.opt_ind (); i < argc; i++)
ACE_DEBUG ((LM_DEBUG, "optind = %d, argv[optind] = %s\n",
i, argv[i]));