diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 2001-12-26 15:46:44 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 2001-12-26 15:46:44 +0000 |
commit | 0bc80fab4dc53994efbd511b22b0c86d59baff8c (patch) | |
tree | 3e074e160a2e59a236f10781cfcb0e071b49fac8 /examples/Web_Crawler/Options.cpp | |
parent | cde21c2507ace716fc833231662ff0f85ff13f5a (diff) | |
download | ATCD-0bc80fab4dc53994efbd511b22b0c86d59baff8c.tar.gz |
ChangeLogTag:Wed Dec 26 09:07:45 2001 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
Diffstat (limited to 'examples/Web_Crawler/Options.cpp')
-rw-r--r-- | examples/Web_Crawler/Options.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/examples/Web_Crawler/Options.cpp b/examples/Web_Crawler/Options.cpp index 89b8e90e5bc..b9c7585a807 100644 --- a/examples/Web_Crawler/Options.cpp +++ b/examples/Web_Crawler/Options.cpp @@ -35,27 +35,27 @@ Options::parse_args (int argc, char *argv[]) this->debug_ = 1; break; case 'f': - this->url_filter_ = getopt.optarg; + this->url_filter_ = getopt.opt_arg (); break; case 'h': - this->hostname_ = getopt.optarg; + this->hostname_ = getopt.opt_arg (); break; case 'i': - this->uri_ = getopt.optarg; + this->uri_ = getopt.opt_arg (); break; case 'l': - this->handle_limit_ = ACE_OS::atoi (getopt.optarg); + this->handle_limit_ = ACE_OS::atoi (getopt.opt_arg ()); break; case 'r': this->recurse_ = 1; break; case 't': - this->timeout_.sec (ACE_OS::atoi (getopt.optarg)); + this->timeout_.sec (ACE_OS::atoi (getopt.opt_arg ())); break; case 'u': { - this->hostname_ = getopt.optarg; - char *s = ACE_OS::strchr (getopt.optarg, '/'); + this->hostname_ = getopt.opt_arg (); + char *s = ACE_OS::strchr (getopt.opt_arg (), '/'); if (s != 0) { this->uri_ = s + 1; @@ -64,7 +64,7 @@ Options::parse_args (int argc, char *argv[]) else ACE_ERROR ((LM_ERROR, "invalid URL %s\n", - getopt.optarg)); + getopt.opt_arg ())); } break; case 'v': @@ -72,11 +72,11 @@ Options::parse_args (int argc, char *argv[]) break; case 'o': { - this->order_ = getopt.optarg; + this->order_ = getopt.opt_arg (); } break; case 'p': - this->port_no_ = ACE_OS::atoi (getopt.optarg); + this->port_no_ = ACE_OS::atoi (getopt.opt_arg ()); break; default: ACE_ERROR ((LM_ERROR, |