summaryrefslogtreecommitdiff
path: root/ace
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-06-07 22:56:29 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-06-07 22:56:29 +0000
commit0fdc1625adc28c6cef9c774d30e11b2eafc9fddf (patch)
treef3cab3f3ed583b118e4d194339f50782578b104e /ace
parent9c9e8a3b63b8fb2a88addedab2734588de67aede (diff)
downloadATCD-0fdc1625adc28c6cef9c774d30e11b2eafc9fddf.tar.gz
*** empty log message ***
Diffstat (limited to 'ace')
-rw-r--r--ace/ACE.cpp19
-rw-r--r--ace/ACE.h2
-rw-r--r--ace/Timer_Queue_T.h3
3 files changed, 13 insertions, 11 deletions
diff --git a/ace/ACE.cpp b/ace/ACE.cpp
index 0b07dca7885..2470c0aa951 100644
--- a/ace/ACE.cpp
+++ b/ace/ACE.cpp
@@ -1545,7 +1545,7 @@ ACE::get_bcast_addr (ACE_UINT32 &bcast_addr,
// put into own subroutine. perform some ioctls to retrieve ifconf
// list of ifreq structs.
-static int
+int
ACE::count_interfaces (ACE_HANDLE handle,
size_t &how_many)
{
@@ -1615,7 +1615,7 @@ ACE::count_interfaces (ACE_HANDLE handle,
// Routine to return a descriptor from which ioctl() requests can be
// made.
-static ACE_HANDLE
+ACE_HANDLE
ACE::get_handle (void)
{
// Solaris 2.x
@@ -1745,7 +1745,7 @@ get_reg_value (const TCHAR *key,
// responsible for calling delete [] on parray
int
-ACE::get_ip_interfaces (ACE_UINT32 &count,
+ACE::get_ip_interfaces (size_t &count,
ACE_INET_Addr *&addrs)
{
// code for NT
@@ -1788,9 +1788,8 @@ ACE::get_ip_interfaces (ACE_UINT32 &count,
return 0;
ACE_NEW_RETURN (addrs, ACE_INET_Addr[n_interfaces], -2);
- int i;
- for (i = 0; i < n_interfaces; i++)
+ for (int i = 0; i < n_interfaces; i++)
{
// a. construct name to access IPAddress for this interface
@@ -1826,7 +1825,7 @@ ACE::get_ip_interfaces (ACE_UINT32 &count,
// COMMON (SVR4 and BSD) UNIX CODE
ACE_TRACE ("ACE::get_ip_interfaces");
- ACE_UINT32 num_ifs;
+ size_t num_ifs;
const int FUDGE = 2; /* offset into sa_data[] for ip address on sparc */
@@ -1865,14 +1864,14 @@ ACE::get_ip_interfaces (ACE_UINT32 &count,
// ------------ now create and initialize output array -------------
count = 0;
- ACE_NEW_RETURN (addrs, ACE_INET_Addr[num_ifs]); // caller must free
+ ACE_NEW_RETURN (addrs, ACE_INET_Addr[num_ifs], -1); // caller must free
struct ifreq *pcur = p_ifs.get ();
// Get if address out of ifreq buffers have yet to see a non PF_INET
// data type, but don't chance it which means allocation might be
// larger than actually used
- for (i = 0; i < num_ifs; pcur++, i++)
+ for (int i = 0; i < num_ifs; pcur++, i++)
{
ACE_UINT32 tmp_addr;
@@ -1892,4 +1891,6 @@ ACE::get_ip_interfaces (ACE_UINT32 &count,
#endif /* ACE_WIN32 */
}
-
+#if defined (ACE_TEMPLATES_REQUIRE_SPECIALIZATION)
+template class auto_ptr<struct ifreq>;
+#endif /* ACE_TEMPLATES_REQUIRE_SPECIALIZATION */
diff --git a/ace/ACE.h b/ace/ACE.h
index be437b9ab2f..0fa913d4b3d 100644
--- a/ace/ACE.h
+++ b/ace/ACE.h
@@ -218,7 +218,7 @@ public:
// socket internally (and free it). Returns -1 on failure and 0 on
// success.
- static int get_ip_interfaces (ACE_UINT32 &count,
+ static int get_ip_interfaces (size_t &count,
ACE_INET_Addr *&addr_array);
// Return count and array of all configured IP interfaces on this
// host, rc = 0 on success (count == number of interfaces else -1).
diff --git a/ace/Timer_Queue_T.h b/ace/Timer_Queue_T.h
index 83af5c84cc5..fdcb549587c 100644
--- a/ace/Timer_Queue_T.h
+++ b/ace/Timer_Queue_T.h
@@ -242,7 +242,8 @@ public:
// Determine the next event to timeout. Returns <max> if there are
// no pending timers or if all pending timers are longer than max.
- virtual ACE_Time_Value *calculate_timeout (ACE_Time_Value *max, ACE_Time_Value*& the_timeout);
+ virtual ACE_Time_Value *calculate_timeout (ACE_Time_Value *max,
+ ACE_Time_Value *&the_timeout);
// Determine the next event to timeout. Returns <max> if there are
// no pending timers or if all pending timers are longer than max.
// <the_timeout> should be a pointer to storage for the timeout value,