mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
Some missing from merge.
Signed-off-by: Salja <salja2012@hotmail.de>
This commit is contained in:
parent
ec939a5bce
commit
f4be15a7af
1895 changed files with 160408 additions and 53601 deletions
|
|
@ -1,3 +1,5 @@
|
|||
// $Id: Local_Tokens.cpp 96985 2013-04-11 15:50:32Z huangh $
|
||||
|
||||
#include "ace/Local_Tokens.h"
|
||||
|
||||
#if defined (ACE_HAS_TOKENS_LIBRARY)
|
||||
|
|
@ -119,11 +121,11 @@ ACE_TPQ_Entry::ACE_TPQ_Entry (const ACE_Token_Proxy *new_proxy,
|
|||
|
||||
// The cast is an attempt to get this to compile (and run,
|
||||
// hopefully) regardless of the type of ACE_thread_t.
|
||||
ACE_OS::snprintf (name, sizeof name / sizeof name[0],
|
||||
ACE_TEXT ("/%s/%u/%lu"),
|
||||
host_name,
|
||||
static_cast<u_int> (ACE_OS::getpid ()),
|
||||
*reinterpret_cast<u_long *> (&thread_id));
|
||||
ACE_OS::sprintf (name,
|
||||
ACE_TEXT ("/%s/%u/%lu"),
|
||||
host_name,
|
||||
static_cast<u_int> (ACE_OS::getpid ()),
|
||||
*reinterpret_cast<u_long *> (&thread_id));
|
||||
|
||||
this->client_id (name);
|
||||
}
|
||||
|
|
@ -1188,8 +1190,8 @@ ACE_Token_Proxy::open (const ACE_TCHAR *token_name,
|
|||
// We must have a name.
|
||||
if (token_name == 0)
|
||||
{
|
||||
ACE_OS::snprintf (name, BUFSIZ, ACE_TEXT ("token %lx"),
|
||||
reinterpret_cast<long> (this));
|
||||
ACE_OS::sprintf (name, ACE_TEXT ("token %lx"),
|
||||
reinterpret_cast<long> (this));
|
||||
token_name = name;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue