diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2001-12-31 14:25:55 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2001-12-31 14:25:55 +0000 |
commit | 6eae1ecf7175c151b9132507edefbbf744e6a1ea (patch) | |
tree | 294c4d594eed2ec4b010638ce7a81403531c8c85 /apps | |
parent | eb614cc38899a68611d23f7a7aa525cf83b88a1d (diff) | |
download | ATCD-6eae1ecf7175c151b9132507edefbbf744e6a1ea.tar.gz |
ChangeLogTag: Mon Dec 31 15:08:08 2001 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/drwho/BS_Server.cpp | 2 | ||||
-rw-r--r-- | apps/drwho/Options.cpp | 4 | ||||
-rw-r--r-- | apps/drwho/PMC_Ruser.cpp | 4 | ||||
-rw-r--r-- | apps/drwho/PM_Client.cpp | 4 | ||||
-rw-r--r-- | apps/gperf/src/Options.cpp | 10 |
5 files changed, 12 insertions, 12 deletions
diff --git a/apps/drwho/BS_Server.cpp b/apps/drwho/BS_Server.cpp index 90f37cbc67b..bddaa5a31aa 100644 --- a/apps/drwho/BS_Server.cpp +++ b/apps/drwho/BS_Server.cpp @@ -12,7 +12,7 @@ BS_Server::BS_Server (const char *packet) { const char *buf_ptr = packet + MAXUSERIDNAMELEN; - this->count_ = atoi (packet); + this->count_ = ACE_OS::atoi (packet); this->buffer_ = buf_ptr; ACE_NEW (this->protocol_record_, diff --git a/apps/drwho/Options.cpp b/apps/drwho/Options.cpp index 577d35a2b7a..94fc0ee70b8 100644 --- a/apps/drwho/Options.cpp +++ b/apps/drwho/Options.cpp @@ -124,7 +124,7 @@ Options::set_options (int argc, char *argv[]) Options::set_opt (Options::USE_VERBOSE_FORMAT); break; case 'p': - Options::port_number = atoi (getopt.opt_arg ()); + Options::port_number = ACE_OS::atoi (getopt.opt_arg ()); break; case 'R': Options::protocol_type = PROTO_RUSER; @@ -139,7 +139,7 @@ Options::set_options (int argc, char *argv[]) Options::set_opt (Options::SORT_BY_REAL_NAME); break; case 't': - Options::max_server_timeout = atoi (getopt.opt_arg ()); + Options::max_server_timeout = ACE_OS::atoi (getopt.opt_arg ()); break; case 'w': Options::user_name = getopt.opt_arg (); diff --git a/apps/drwho/PMC_Ruser.cpp b/apps/drwho/PMC_Ruser.cpp index 79adac7b9ed..f32b13a7bc2 100644 --- a/apps/drwho/PMC_Ruser.cpp +++ b/apps/drwho/PMC_Ruser.cpp @@ -103,8 +103,8 @@ PMC_Ruser::handle_protocol_entries (const char *cp, Drwho_Node *current_node = protocol_record.get_drwho_list (); protocol_record.set_host (host_name); - current_node->set_inactive_count (atoi (cp)); - current_node->set_active_count (atoi (cp = ACE_OS::strchr (cp, ' ') + 1)); + current_node->set_inactive_count (ACE_OS::atoi (cp)); + current_node->set_active_count (ACE_OS::atoi (cp = ACE_OS::strchr (cp, ' ') + 1)); current_node->set_login_name (cp = ACE_OS::strchr (cp, ' ') + 1); current_node->set_real_name (cp = ACE_OS::strchr (cp, '\0') + 1); diff --git a/apps/drwho/PM_Client.cpp b/apps/drwho/PM_Client.cpp index 58f1d318adf..44476007dc4 100644 --- a/apps/drwho/PM_Client.cpp +++ b/apps/drwho/PM_Client.cpp @@ -119,8 +119,8 @@ PM_Client::handle_protocol_entries (const char *cp, protocol_record.set_login (login_name); protocol_record.set_real (real_name); - current_node->set_inactive_count (atoi (cp)); - current_node->set_active_count (atoi (cp = ACE_OS::strchr (cp, ' ') + 1)); + current_node->set_inactive_count (ACE_OS::atoi (cp)); + current_node->set_active_count (ACE_OS::atoi (cp = ACE_OS::strchr (cp, ' ') + 1)); current_node->set_host_name (cp = ACE_OS::strchr (cp, ' ') + 1); this->insert_protocol_info (protocol_record); diff --git a/apps/gperf/src/Options.cpp b/apps/gperf/src/Options.cpp index 5355ecdf8e8..4b543045855 100644 --- a/apps/gperf/src/Options.cpp +++ b/apps/gperf/src/Options.cpp @@ -328,7 +328,7 @@ Options::parse_args (int argc, char *argv[]) case 'f': { ACE_SET_BITS (option_word_, FAST); - iterations_ = atoi (getopt.opt_arg ()); + iterations_ = ACE_OS::atoi (getopt.opt_arg ()); if (iterations_ < 0) { ACE_ERROR ((LM_ERROR, "iterations value must not be negative, assuming 0\n")); @@ -454,7 +454,7 @@ Options::parse_args (int argc, char *argv[]) // Sets the initial value for the associated values array. case 'i': { - initial_asso_value_ = atoi (getopt.opt_arg ()); + initial_asso_value_ = ACE_OS::atoi (getopt.opt_arg ()); if (initial_asso_value_ < 0) ACE_ERROR ((LM_ERROR, "Initial value %d should be non-zero, ignoring and continuing.\n", @@ -472,7 +472,7 @@ Options::parse_args (int argc, char *argv[]) // Sets the jump value, must be odd for later algorithms. case 'j': { - jump_ = atoi (getopt.opt_arg ()); + jump_ = ACE_OS::atoi (getopt.opt_arg ()); if (jump_ < 0) ACE_ERROR_RETURN ((LM_ERROR, "Jump value %d must be a positive number.\n%r", @@ -631,7 +631,7 @@ Options::parse_args (int argc, char *argv[]) // Range of associated values, determines size of final table. case 's': { - size_ = atoi (getopt.opt_arg ()); + size_ = ACE_OS::atoi (getopt.opt_arg ()); if (abs (size_) > 50) ACE_ERROR ((LM_ERROR, "%d is excessive, did you really mean this?! (type %n -h for help)\n", @@ -642,7 +642,7 @@ Options::parse_args (int argc, char *argv[]) case 'S': { ACE_SET_BITS (option_word_, SWITCH); - total_switches_ = atoi (getopt.opt_arg ()); + total_switches_ = ACE_OS::atoi (getopt.opt_arg ()); if (total_switches_ <= 0) ACE_ERROR_RETURN ((LM_ERROR, "number of switches %s must be a positive number\n%r", |