diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-08-30 19:34:27 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-08-30 19:34:27 +0000 |
commit | 03154c9a5b9e8628d31bd9032549327d51304645 (patch) | |
tree | f4f85e04edaef6ed998a7953275ad3dcf1911fef /apps/drwho/HT_Client.cpp | |
parent | 73efbc1d2ad02533d865e1b14008ffc8d8bc82fb (diff) | |
download | ATCD-pre_multiple_profile_server.tar.gz |
This commit was manufactured by cvs2svn to create tagpre_multiple_profile_server
'pre_multiple_profile_server'.
Diffstat (limited to 'apps/drwho/HT_Client.cpp')
-rw-r--r-- | apps/drwho/HT_Client.cpp | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/apps/drwho/HT_Client.cpp b/apps/drwho/HT_Client.cpp deleted file mode 100644 index 2cd548c6506..00000000000 --- a/apps/drwho/HT_Client.cpp +++ /dev/null @@ -1,35 +0,0 @@ -// $Id$ - -#include "HT_Client.h" - -// Insert a KEY_NAME into the hash table, if it doesn't already exist -// there. What gets returned is a pointer to the node inserted. Note -// that we do our own memory allocation here... - -Protocol_Record * -HT_Client::insert (const char *key_name, int max_len) -{ - Protocol_Record **prpp = 0; - - // This is tricky... - - for (prpp = &this->hash_table[ACE::hash_pjw (key_name) % this->hash_table_size]; - *prpp != 0 - && ACE_OS::strncmp ((*prpp)->get_login (), - key_name, max_len) != 0; - prpp = &(*prpp)->next_) - continue; - - if (*prpp == 0) - { - ACE_NEW_RETURN (*prpp, - Protocol_Record (ACE::strnew (key_name), - *prpp), - 0); - this->count_++; - } - - return *prpp; -} - - |