summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbala <balanatarajan@users.noreply.github.com>2002-10-18 21:20:27 +0000
committerbala <balanatarajan@users.noreply.github.com>2002-10-18 21:20:27 +0000
commit3b8ee9cdf46df5f04a98559d8c76b7eab9599b87 (patch)
treef1370198b949e7042f1e2d08dc4da70805234655
parent664850e563ee1f5995884c03af1464bd08fc7833 (diff)
downloadATCD-3b8ee9cdf46df5f04a98559d8c76b7eab9599b87.tar.gz
ChangeLogTag: Fri Oct 18 16:11:23 2002 Balachandran Natarajan <bala@isis-server.isis.vanderbilt.edu>
-rw-r--r--TAO/ChangeLog10
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/Log_i.cpp11
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/Log_i.h52
3 files changed, 42 insertions, 31 deletions
diff --git a/TAO/ChangeLog b/TAO/ChangeLog
index 359742f38ed..bff0923b7aa 100644
--- a/TAO/ChangeLog
+++ b/TAO/ChangeLog
@@ -1,3 +1,13 @@
+Fri Oct 18 16:11:23 2002 Balachandran Natarajan <bala@isis-server.isis.vanderbilt.edu>
+
+ * orbsvcs/orbsvcs/Log/Log_i.cpp (Log_i): Patch to prevent compile
+ errors on OpenBSD. Thanks to Frank
+ Hunleth<frank@hunleth.com> for the fix. The problem is because
+ of a type conversion from unsigned long to time_t. Looks like
+ time_t is an int on OpenBSD.
+
+ * orbsvcs/orbsvcs/Log/Log_i.h: Some cosmetic fixes.
+
Fri Oct 18 16:09:37 2002 Priyanka Gontla <pgontla@ociweb.com>
* orbsvcs/ImplRepo_Service/README.txt:
diff --git a/TAO/orbsvcs/orbsvcs/Log/Log_i.cpp b/TAO/orbsvcs/orbsvcs/Log/Log_i.cpp
index e1f66d941c5..dc4decef05f 100644
--- a/TAO/orbsvcs/orbsvcs/Log/Log_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/Log_i.cpp
@@ -1069,7 +1069,7 @@ Log_i::flush (ACE_ENV_SINGLE_ARG_DECL)
}
-bool
+CORBA::Boolean
Log_i::validate_capacity_alarm_thresholds (
const DsLogAdmin::CapacityAlarmThresholdList & threshs
ACE_ENV_ARG_DECL_NOT_USED)
@@ -1102,14 +1102,15 @@ Log_i::scheduled (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
{
TimeBase::TimeT current_time;
ACE_Time_Value now = ACE_OS::gettimeofday ();
- ORBSVCS_Time::Time_Value_to_TimeT(current_time, now);
+ ORBSVCS_Time::Time_Value_to_TimeT (current_time, now);
// work out when sunday is in nanoseconds.
timeval t;
t = (timeval) now;
struct tm *sunday;
- sunday = ACE_OS::localtime (&t.tv_sec);
+ time_t clock = (time_t) t.tv_sec;
+ sunday = ACE_OS::localtime (&clock);
sunday->tm_sec = 0;
sunday->tm_min = 0;
@@ -1119,7 +1120,8 @@ Log_i::scheduled (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
t.tv_sec = ACE_OS::mktime (sunday) ;
t.tv_usec = 0;
- TimeBase::TimeT nano_sunday = (CORBA::ULongLong) t.tv_sec * 10000000;
+ TimeBase::TimeT nano_sunday =
+ (CORBA::ULongLong) t.tv_sec * 10000000;
for (CORBA::ULong i = 0; i < weekly_intervals_.length (); ++i)
{
@@ -1370,4 +1372,3 @@ template class TAO_Unbounded_Sequence<DsLogAdmin::TimeInterval>;
#elif defined(ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
#pragma instantiate TAO_Unbounded_Sequence<DsLogAdmin::TimeInterval>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
diff --git a/TAO/orbsvcs/orbsvcs/Log/Log_i.h b/TAO/orbsvcs/orbsvcs/Log/Log_i.h
index c70248da049..505c184933b 100644
--- a/TAO/orbsvcs/orbsvcs/Log/Log_i.h
+++ b/TAO/orbsvcs/orbsvcs/Log/Log_i.h
@@ -95,7 +95,7 @@ public:
/// Set the record life in seconds (0 infinite).
void
set_max_record_life (CORBA::ULong life
- ACE_ENV_ARG_DECL)
+ ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
/// Get the maximum size in octets.
@@ -106,7 +106,7 @@ public:
/// Set the maximum size in octets.
void
set_max_size (CORBA::ULongLong size
- ACE_ENV_ARG_DECL)
+ ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
DsLogAdmin::InvalidParam));
@@ -128,7 +128,7 @@ public:
/// Set the action to be taken when the log reaches its maximum size.
void
set_log_full_action (DsLogAdmin::LogFullActionType action
- ACE_ENV_ARG_DECL)
+ ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
/// Get the administrative state of the log.
@@ -139,7 +139,7 @@ public:
/// Set the administrative state of the log.
void
set_administrative_state (DsLogAdmin::AdministrativeState state
- ACE_ENV_ARG_DECL)
+ ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
/// Get the forwarding state of the log.
@@ -170,7 +170,7 @@ public:
/// Set the log duration.
void
set_interval (const DsLogAdmin::TimeInterval & interval
- ACE_ENV_ARG_DECL)
+ ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
DsLogAdmin::InvalidTime,
DsLogAdmin::InvalidTimeInterval));
@@ -208,7 +208,7 @@ public:
/// Set the weekly scheduling parameters.
void
set_week_mask (const DsLogAdmin::WeekMask & masks
- ACE_ENV_ARG_DECL)
+ ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
DsLogAdmin::InvalidTime,
DsLogAdmin::InvalidTimeInterval,
@@ -218,9 +218,9 @@ public:
/// <c>.
DsLogAdmin::RecordList*
query (const char * grammar,
- const char * c,
- DsLogAdmin::Iterator_out i
- ACE_ENV_ARG_DECL)
+ const char * c,
+ DsLogAdmin::Iterator_out i
+ ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
DsLogAdmin::InvalidGrammar,
DsLogAdmin::InvalidConstraint));
@@ -229,16 +229,16 @@ public:
/// <i>.
DsLogAdmin::RecordList*
retrieve (DsLogAdmin::TimeT from_time,
- CORBA::Long how_many,
- DsLogAdmin::Iterator_out i
- ACE_ENV_ARG_DECL)
+ CORBA::Long how_many,
+ DsLogAdmin::Iterator_out i
+ ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
/// Returns the number of records matching constraint <c>.
CORBA::ULong
match (const char * grammar,
- const char * c
- ACE_ENV_ARG_DECL)
+ const char * c
+ ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
DsLogAdmin::InvalidGrammar,
DsLogAdmin::InvalidConstraint));
@@ -246,8 +246,8 @@ public:
/// Delete records matching constraint <c>.
CORBA::ULong
delete_records (const char * grammar,
- const char * c
- ACE_ENV_ARG_DECL)
+ const char * c
+ ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
DsLogAdmin::InvalidGrammar,
DsLogAdmin::InvalidConstraint));
@@ -255,14 +255,14 @@ public:
/// Delete records matching ids in <ids>
CORBA::ULong
delete_records_by_id (const DsLogAdmin::RecordIdList & ids
- ACE_ENV_ARG_DECL)
+ ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
/// Write records to the log storage.
void
write_records (const DsLogAdmin::Anys & records
- ACE_ENV_ARG_DECL)
+ ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
DsLogAdmin::LogFull,
DsLogAdmin::LogLocked,
@@ -272,7 +272,7 @@ public:
/// and DsLogAdmin::LogLocked
void
write_recordlist (const DsLogAdmin::RecordList & list
- ACE_ENV_ARG_DECL)
+ ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
DsLogAdmin::LogFull,
DsLogAdmin::LogLocked,
@@ -281,8 +281,8 @@ public:
/// Set single record attributes.
void
set_record_attribute (DsLogAdmin::RecordId id,
- const DsLogAdmin::NVList & attr_list
- ACE_ENV_ARG_DECL)
+ const DsLogAdmin::NVList & attr_list
+ ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
DsLogAdmin::InvalidRecordId,
DsLogAdmin::InvalidAttribute));
@@ -291,9 +291,9 @@ public:
/// constraints with same attr_list.
CORBA::ULong
set_records_attribute (const char * grammar,
- const char * c,
- const DsLogAdmin::NVList & attr_list
- ACE_ENV_ARG_DECL)
+ const char * c,
+ const DsLogAdmin::NVList & attr_list
+ ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
DsLogAdmin::InvalidGrammar,
DsLogAdmin::InvalidConstraint,
@@ -303,7 +303,7 @@ public:
/// DsLogAdmin::InvalidRecordId
DsLogAdmin::NVList*
get_record_attribute (DsLogAdmin::RecordId id
- ACE_ENV_ARG_DECL)
+ ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
DsLogAdmin::InvalidRecordId));
@@ -316,7 +316,7 @@ public:
//@}
/// Check that valid threshold values have been given.
- static bool validate_capacity_alarm_thresholds (
+ static CORBA::Boolean validate_capacity_alarm_thresholds (
const DsLogAdmin::CapacityAlarmThresholdList & threshs
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));